From 648c7684898f0056f0202b6b43ba9f5f11655703 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sun, 23 Sep 2018 15:09:56 +1200 Subject: Implement push notifications --- web/load.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'web/load.js') diff --git a/web/load.js b/web/load.js index 0418a13..552b167 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; -- cgit v1.2.3