From 0c0bca688ca18d5a3dc19851b09f6f627625bed0 Mon Sep 17 00:00:00 2001 From: VitalikL Date: Wed, 30 Nov 2016 19:49:45 -0500 Subject: [PATCH] Updating schema for iOS Bridge --- js/ss-reader.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/js/ss-reader.js b/js/ss-reader.js index 03ac183..383568b 100644 --- a/js/ss-reader.js +++ b/js/ss-reader.js @@ -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); } }); }