summaryrefslogtreecommitdiff
path: root/StoneIsland/www/js/lib/etc/push.js
diff options
context:
space:
mode:
Diffstat (limited to 'StoneIsland/www/js/lib/etc/push.js')
-rwxr-xr-xStoneIsland/www/js/lib/etc/push.js3
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 ]")
}