From 190e24251c17733eff8fc1b11a077ca2da4b6c4f Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Fri, 11 Dec 2015 04:24:13 -0600 Subject: rebuild --- StoneIsland/www/js/lib/etc/push.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'StoneIsland/www/js/lib/etc/push.js') 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 ]") } -- cgit v1.2.3-70-g09d2