aboutsummaryrefslogtreecommitdiff
path: root/web/load.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-09-23 15:09:56 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2018-09-23 15:09:56 +1200
commit648c7684898f0056f0202b6b43ba9f5f11655703 (patch)
tree15706f0eeb2b39de63af4aa28825553d59794bf4 /web/load.js
parent357b4a8c8652d42bd228390bbc337003e059b04c (diff)
downloadtrackermap-web-648c7684898f0056f0202b6b43ba9f5f11655703.tar.gz
trackermap-web-648c7684898f0056f0202b6b43ba9f5f11655703.tar.bz2
trackermap-web-648c7684898f0056f0202b6b43ba9f5f11655703.zip
Implement push notifications
Diffstat (limited to 'web/load.js')
-rw-r--r--web/load.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/web/load.js b/web/load.js
index 0418a131..552b167a 100644
--- a/web/load.js
+++ b/web/load.js
@@ -28,6 +28,10 @@
debugMode = document.getElementById('loadScript').getAttribute('mode') === 'debug';
touchMode = 'ontouchstart' in window || navigator.maxTouchPoints;
+ window.updateNotificationToken = function (token) {
+ Traccar.app.updateNotificationToken(token);
+ };
+
locale = {};
window.Locale = locale;