Skip to content

Commit 5d060ea

Browse files
committed
More work
1 parent fa7c53f commit 5d060ea

File tree

1 file changed

+1
-27
lines changed

1 file changed

+1
-27
lines changed

beta/emuos/assets/js/mainv2.js

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,5 @@
11
// noinspection ThisExpressionReferencesGlobalObjectJS,JSUnusedLocalSymbols,DuplicatedCode
22
(function(global) {
3-
global.GoogleAnalyticsObject = '__ga__';
4-
global.__ga__ = function() {
5-
for (var i = 0; i < arguments.length; i++) {
6-
var arg = arguments[i];
7-
8-
// noinspection JSUnresolvedVariable
9-
if (arg.constructor === Object && arg.hitCallback) {
10-
arg.hitCallback();
11-
}
12-
}
13-
};
14-
global.__ga__.q = [['create', 'UA-47896346-6', 'auto']];
15-
global.__ga__.l = Date.now();
16-
173
// noinspection JSUnusedLocalSymbols,DuplicatedCode
184
define('optional', [], {
195
load: function(name, req, onload, config) {
@@ -48,9 +34,6 @@
4834
requirejs.config({
4935
paths: $sys.lib,
5036
shim: {
51-
ga: {
52-
exports: '__ga__'
53-
},
5437
'jquery-ui': {
5538
deps: ['jquery']
5639
}
@@ -67,18 +50,9 @@
6750
// noinspection JSCheckFunctionSignatures,JSUnusedLocalSymbols
6851
requirejs([
6952
'jquery',
70-
'jquery-ui',
71-
'optional!ga'
53+
'jquery-ui'
7254
], function($, ui, ga) {
7355
$(function() {
74-
if (typeof ga === 'function') {
75-
ga('send', {
76-
hitType: 'pageview',
77-
page: global.location.pathname,
78-
title: global.location.href
79-
});
80-
}
81-
8256
var $html = $('html');
8357
var $body = $('body');
8458

0 commit comments

Comments
 (0)