diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-12-11 04:24:13 -0600 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-12-11 04:24:13 -0600 |
| commit | 190e24251c17733eff8fc1b11a077ca2da4b6c4f (patch) | |
| tree | eef5d4175d41f7296a4a64918d4e50192a496143 /StoneIsland/www/js/lib/etc/push.js | |
| parent | 0e070756a7e66975fe381577e93dd5f709017bf7 (diff) | |
rebuild
Diffstat (limited to 'StoneIsland/www/js/lib/etc/push.js')
| -rwxr-xr-x | StoneIsland/www/js/lib/etc/push.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/StoneIsland/www/js/lib/etc/push.js b/StoneIsland/www/js/lib/etc/push.js index 9a921059..15371247 100755 --- a/StoneIsland/www/js/lib/etc/push.js +++ b/StoneIsland/www/js/lib/etc/push.js @@ -25,6 +25,7 @@ var push = (function(){ parsePlugin.subscribe(channel, function(){ push.settings[channel] = true localStorage.setItem("yoox.push_" + channel, "true") + console.log("subscribed to", channel) cb && cb() }, push.error) } @@ -32,6 +33,7 @@ var push = (function(){ parsePlugin.unsubscribe(channel, function(){ push.settings[channel] = false localStorage.setItem("yoox.push_" + channel, "false") + console.log("unsubscribed from", channel) cb && cb() }, push.error) } @@ -58,6 +60,7 @@ var push = (function(){ else { app.intro.$alert.show().html("[ STORE UPDATED ]") } + } catch (e) { app.intro.$alert.show().html("[ HUB UPDATED ]") } |
