mirror of
https://github.com/chinchang/web-maker.git
synced 2025-07-26 16:20:09 +02:00
event fix and add once
This commit is contained in:
@@ -10,7 +10,7 @@ window.trackEvent = function (category, action, label, value) {
|
||||
}
|
||||
}
|
||||
|
||||
// if online, load after 2 seconds
|
||||
// if online, load after sometime
|
||||
if (navigator.onLine && !window.DEBUG) {
|
||||
/* eslint-disable */
|
||||
|
||||
@@ -26,7 +26,7 @@ if (navigator.onLine && !window.DEBUG) {
|
||||
// required for chrome extension protocol
|
||||
ga('set', 'checkProtocolTask', function(){ /* nothing */ });
|
||||
ga('send', 'pageview');
|
||||
}, 0);
|
||||
}, 100);
|
||||
|
||||
/* eslint-enable */
|
||||
}
|
Reference in New Issue
Block a user