|
2 | 2 |
|
3 | 3 | (function (factory) { |
4 | 4 | if (typeof define === 'function' && define.amd) { |
5 | | - define(['jquery', 'router', 'toastr', 'optional!simplestorage', 'optional!moment-timezone', 'optional!ga', 'optional!octokat', 'optional!esheep', 'optional!clippy', 'optional!fireworks'], factory); |
| 5 | + define(['jquery', 'router', 'toastr', 'optional!simplestorage', 'optional!moment-timezone', 'optional!octokat', 'optional!esheep', 'optional!clippy', 'optional!fireworks'], factory); |
6 | 6 | } else { // noinspection DuplicatedCode |
7 | 7 | if (typeof module === 'object' && module.exports) { |
8 | 8 | module.exports = function(root, jQuery) { |
|
22 | 22 | factory(jQuery); |
23 | 23 | } |
24 | 24 | } |
25 | | -} (function ($, Router, toastr, simplestorage, moment, ga, Octokat, eSheep, clippy, Fireworks) { |
| 25 | +} (function ($, Router, toastr, simplestorage, moment, Octokat, eSheep, clippy, Fireworks) { |
26 | 26 | var root = location.hostname === 'localhost' ? 'https://emupedia.net' : ''; |
27 | 27 | var hash = location.hash.toString(); |
28 | 28 | var resizeTimeout = null; |
|
547 | 547 | } |
548 | 548 | } |
549 | 549 |
|
550 | | - if (typeof ga === 'function') { |
551 | | - ga('send', { |
552 | | - hitType: 'pageview', |
553 | | - page: $(this).data('link'), |
554 | | - title: window.location.href |
555 | | - }); |
556 | | - } |
557 | | - |
558 | 550 | if (typeof $(this).data('singleinstance') !== 'undefined') { |
559 | 551 | // noinspection DuplicatedCode |
560 | 552 | if ($(this).data('singleinstance') && self.$body.find('[id^="' + $(this).data('name') + '"]').length === 0) { |
|
0 commit comments