1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-05-16 15:19:46 +02:00

eslint fixes.

This commit is contained in:
Kushagra Gour 2016-12-04 13:48:14 +05:30
parent a712230640
commit 2b3d2a8e66
2 changed files with 8 additions and 0 deletions

@ -1,3 +1,5 @@
/* global ga */
// eslint-disable-next-line max-params
window.trackEvent = function (category, action, label, value) {
if (window.ga) {
ga('send', 'event', category, action, label, value);
@ -7,6 +9,8 @@ window.trackEvent = function (category, action, label, value) {
// if online, load after sometime
if (navigator.onLine) {
setTimeout(function() {
/* eslint-disable */
(function(i,s,o,g,r,a,m){
i['GoogleAnalyticsObject']=r;
i[r]=i[r]||function(){
@ -18,5 +22,8 @@ if (navigator.onLine) {
// required for chrome extension protocol
ga('set', 'checkProtocolTask', function(){ /* nothing */ });
ga('send', 'pageview');
/* eslint-enable */
}, 0);
}

@ -1,3 +1,4 @@
/* global trackEvent */
/* eslint-disable no-extra-semi */
;(function () {