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.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/StoneIsland/www/js/lib/etc/push.js b/StoneIsland/www/js/lib/etc/push.js
index 746172eb..74aaf7b5 100755
--- a/StoneIsland/www/js/lib/etc/push.js
+++ b/StoneIsland/www/js/lib/etc/push.js
@@ -37,6 +37,10 @@ var push = (function(){
push.settings.hub = hub_status == "true"
push.settings.store = store_status == "true"
+ if (push.settings.requested) {
+ return
+ }
+ // not sure why we're also signing up for notifications here??
if (! hub_status || hub_status == "true") {
push.subscribe("hub")
}
@@ -46,7 +50,7 @@ var push = (function(){
}
push.got_registration = function(data){
var registrationId = data.registrationId
- var oldRegistrationId = localStorage.getItem("yoox.registrationId")
+ var oldRegistrationId = localStorage.getItem("yoox.registrationId")
// console.log(registrationId, oldRegistrationId)
if (registrationId !== oldRegistrationId || ! push.settings.requested) {