From 4ed316ba420c5a07338f783c942dce800f14476f Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 3 Sep 2019 19:29:08 +0200 Subject: rebuild app --- StoneIsland/platforms/ios/www/js/lib/etc/push.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'StoneIsland/platforms/ios/www/js/lib/etc/push.js') diff --git a/StoneIsland/platforms/ios/www/js/lib/etc/push.js b/StoneIsland/platforms/ios/www/js/lib/etc/push.js index 746172eb..74aaf7b5 100755 --- a/StoneIsland/platforms/ios/www/js/lib/etc/push.js +++ b/StoneIsland/platforms/ios/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) { -- cgit v1.2.3-70-g09d2