Skip to content

Commit

Permalink
Updating schema for iOS Bridge
Browse files Browse the repository at this point in the history
  • Loading branch information
VitalikL committed Dec 1, 2016
1 parent bdd7901 commit 0c0bca6
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions js/ss-reader.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,34 +132,34 @@ $(function(){
if (typeof SSBridge == "undefined"){
window.SSBridge = Class({
$singleton: true,
urlBase: "sabbath-school://",
urlBase: "sabbath-school://ss",

request: function(data){
window.location = this.urlBase + data;
},

onReceiveHighlights: function(highlights){
this.request("highlights/" + highlights);
this.request("?highlights=" + highlights);
},

onVerseClick: function(verse){
this.request("verse/" + verse);
this.request("?verse=" + verse);
},

onCommentsClick: function(comments){
this.request("comments/" + comments);
this.request("?comments=" + comments);
},

onCopy: function(text){
this.request("copy/" + text);
this.request("?copy=" + text);
},

onShare: function(text){
this.request("share/" + text);
this.request("?share=" + text);
},

onSearch: function(text){
this.request("search/" + text);
this.request("?search=" + text);
}
});
}
Expand Down

0 comments on commit 0c0bca6

Please sign in to comment.