1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-07-19 03:05:22 +02:00

hardening neutered google-analytics.com/analytics.js against client-code exceptions

This commit is contained in:
gorhill 2016-01-05 15:40:23 -05:00
parent ba18218487
commit beadfee0a8
2 changed files with 7 additions and 4 deletions

View File

@ -5,7 +5,7 @@
146704ad1c0393e342afdb416762c183 assets/ublock/badware.txt
5baa90e2da7cd6a73edff2010557ee57 assets/ublock/redirect.txt
f9bb491dbba453752199e8378ee152bb assets/ublock/experimental.txt
f2442847428017dc37c6bbf36f834149 assets/ublock/resources.txt
f215de20c0944dcb286757966a233f42 assets/ublock/resources.txt
fe4e995a7a828da38fcb0188c3996dbc assets/ublock/filter-lists.json
50573388b525ede1a920cd4b4ee7fbf0 assets/thirdparties/easylist-downloads.adblockplus.org/easyprivacy.txt
61cc16cf02e034370f0f47bc17c46551 assets/thirdparties/easylist-downloads.adblockplus.org/easylist.txt

View File

@ -203,9 +203,12 @@ google-analytics.com/analytics.js application/javascript
if ( len === 0 ) {
return;
}
var f = arguments[len-1];
if ( typeof f === 'object' && f !== null && typeof f.hitCallback === 'function' ) {
f.hitCallback();
try {
var f = arguments[len-1];
if ( typeof f === 'object' && f !== null && typeof f.hitCallback === 'function' ) {
f.hitCallback();
}
} catch (ex) {
}
};
ga.create = function() {