diff options
| author | Jules Laplace <jules@okfoc.us> | 2017-04-02 18:15:02 +0200 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2017-04-02 18:15:02 +0200 |
| commit | 3a12871d8513c1daed9d0309b10df3b40105dad9 (patch) | |
| tree | d9bae94147c1eef4397d0ea08af2fd53411a2de7 /StoneIsland/www/js/lib/etc/push.js | |
| parent | 5881c411a5e5ad329b9283193086301ee6dffc62 (diff) | |
load department id from querystring
Diffstat (limited to 'StoneIsland/www/js/lib/etc/push.js')
| -rwxr-xr-x | StoneIsland/www/js/lib/etc/push.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/StoneIsland/www/js/lib/etc/push.js b/StoneIsland/www/js/lib/etc/push.js index da63fdd1..043a4d75 100755 --- a/StoneIsland/www/js/lib/etc/push.js +++ b/StoneIsland/www/js/lib/etc/push.js @@ -2,7 +2,7 @@ var push = (function(){ var push = { settings: {}, disabled: false } var pushPlugin push.init = function(){ - if (device.platform !== "ios") { + if (! ('device' in window) || device.platform !== "ios") { push.disabled = true return } |
