Skip to content

Commit ea4b9e4

Browse files
committed
More work
1 parent 324dbdf commit ea4b9e4

1 file changed

Lines changed: 2 additions & 28 deletions

File tree

beta/emuos/assets/js/main.js

Lines changed: 2 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,6 @@
55
'╠═ ║║║║ ║║ ║╚═╗\n' +
66
'╚═╝╩ ╩╚═╝╚═╝╚═╝');*/
77

8-
global.GoogleAnalyticsObject = '__ga__';
9-
global.__ga__ = function() {
10-
for (var i = 0; i < arguments.length; i++) {
11-
var arg = arguments[i];
12-
13-
// noinspection JSUnresolvedVariable
14-
if (arg.constructor === Object && arg.hitCallback) {
15-
arg.hitCallback();
16-
}
17-
}
18-
};
19-
global.__ga__.q = [['create', 'UA-47896346-6', 'auto']];
20-
global.__ga__.l = Date.now();
21-
228
// noinspection JSUnusedLocalSymbols,DuplicatedCode
239
define('optional', [], {
2410
load: function(name, req, onload, config) {
@@ -75,9 +61,6 @@
7561
fingerprint: {
7662
exports: 'FingerprintJS'
7763
},
78-
ga: {
79-
exports: '__ga__'
80-
},
8164
'jquery': {
8265
exports: 'jQuery'
8366
},
@@ -143,18 +126,9 @@
143126
'json!../data/desktop.json',
144127
'filesystem',
145128
'network',
146-
'emuos',
147-
'optional!ga'
148-
], function($, desktop, FileSystem, Network, EmuOS, ga) {
129+
'emuos'
130+
], function($, desktop, FileSystem, Network, EmuOS) {
149131
$(function() {
150-
if (typeof ga === 'function') {
151-
ga('send', {
152-
hitType: 'pageview',
153-
page: global.location.pathname,
154-
title: global.location.href
155-
});
156-
}
157-
158132
// noinspection JSUnusedLocalSymbols
159133
new EmuOS({
160134
filesystem: FileSystem,

0 commit comments

Comments
 (0)