diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2019-09-03 19:29:08 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2019-09-03 19:29:08 +0200 |
| commit | 4ed316ba420c5a07338f783c942dce800f14476f (patch) | |
| tree | e962352207706b0101700b59880c8195f5680059 /StoneIsland/platforms/ios/www/js/lib/etc/push.js | |
| parent | 589c423f3d2d4d65347fbd074b71cc067541c477 (diff) | |
rebuild app
Diffstat (limited to 'StoneIsland/platforms/ios/www/js/lib/etc/push.js')
| -rwxr-xr-x | StoneIsland/platforms/ios/www/js/lib/etc/push.js | 6 |
1 files changed, 5 insertions, 1 deletions
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) { |
