mirror of
https://github.com/gorhill/uBlock.git
synced 2024-10-06 09:37:12 +02:00
Remove globals.js (#3849)
This commit is contained in:
parent
d13294dd39
commit
d959c7aabe
@ -19,8 +19,6 @@
|
|||||||
Home: https://github.com/gorhill/uBlock
|
Home: https://github.com/gorhill/uBlock
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* globals WebAssembly vAPI */
|
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
|
@ -1,40 +0,0 @@
|
|||||||
/*******************************************************************************
|
|
||||||
|
|
||||||
uBlock Origin - a browser extension to block requests.
|
|
||||||
Copyright (C) 2014-present Raymond Hill
|
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU General Public License as published by
|
|
||||||
the Free Software Foundation, either version 3 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
GNU General Public License for more details.
|
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
|
||||||
along with this program. If not, see {http://www.gnu.org/licenses/}.
|
|
||||||
|
|
||||||
Home: https://github.com/gorhill/uBlock
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* globals self */
|
|
||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
/******************************************************************************/
|
|
||||||
|
|
||||||
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/globalThis
|
|
||||||
|
|
||||||
const globals = (( ) => {
|
|
||||||
// jshint ignore:start
|
|
||||||
if ( typeof globalThis !== 'undefined' ) { return globalThis; }
|
|
||||||
if ( typeof self !== 'undefined' ) { return self; }
|
|
||||||
if ( typeof global !== 'undefined' ) { return global; }
|
|
||||||
// jshint ignore:end
|
|
||||||
})();
|
|
||||||
|
|
||||||
/******************************************************************************/
|
|
||||||
|
|
||||||
export default globals;
|
|
@ -25,10 +25,6 @@
|
|||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
|
|
||||||
import globals from './globals.js';
|
|
||||||
|
|
||||||
/******************************************************************************/
|
|
||||||
|
|
||||||
(( ) => {
|
(( ) => {
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
@ -47,7 +43,7 @@ if (
|
|||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
|
|
||||||
const logger = globals.logger;
|
const logger = self.logger;
|
||||||
var inspectorConnectionId;
|
var inspectorConnectionId;
|
||||||
var inspectedTabId = 0;
|
var inspectedTabId = 0;
|
||||||
var inspectedURL = '';
|
var inspectedURL = '';
|
||||||
|
@ -25,7 +25,6 @@
|
|||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
|
|
||||||
import globals from './globals.js';
|
|
||||||
import { hostnameFromURI } from './uri-utils.js';
|
import { hostnameFromURI } from './uri-utils.js';
|
||||||
|
|
||||||
/******************************************************************************/
|
/******************************************************************************/
|
||||||
@ -34,7 +33,7 @@ import { hostnameFromURI } from './uri-utils.js';
|
|||||||
// accumulated over time.
|
// accumulated over time.
|
||||||
|
|
||||||
const messaging = vAPI.messaging;
|
const messaging = vAPI.messaging;
|
||||||
const logger = globals.logger = { ownerId: Date.now() };
|
const logger = self.logger = { ownerId: Date.now() };
|
||||||
const logDate = new Date();
|
const logDate = new Date();
|
||||||
const logDateTimezoneOffset = logDate.getTimezoneOffset() * 60000;
|
const logDateTimezoneOffset = logDate.getTimezoneOffset() * 60000;
|
||||||
const loggerEntries = [];
|
const loggerEntries = [];
|
||||||
|
@ -10,7 +10,6 @@ mkdir -p $DES/js
|
|||||||
cp src/js/base64-custom.js $DES/js
|
cp src/js/base64-custom.js $DES/js
|
||||||
cp src/js/biditrie.js $DES/js
|
cp src/js/biditrie.js $DES/js
|
||||||
cp src/js/filtering-context.js $DES/js
|
cp src/js/filtering-context.js $DES/js
|
||||||
cp src/js/globals.js $DES/js
|
|
||||||
cp src/js/hntrie.js $DES/js
|
cp src/js/hntrie.js $DES/js
|
||||||
cp src/js/static-filtering-parser.js $DES/js
|
cp src/js/static-filtering-parser.js $DES/js
|
||||||
cp src/js/static-net-filtering.js $DES/js
|
cp src/js/static-net-filtering.js $DES/js
|
||||||
|
@ -11,7 +11,6 @@ cp src/js/base64-custom.js $DES/js
|
|||||||
cp src/js/biditrie.js $DES/js
|
cp src/js/biditrie.js $DES/js
|
||||||
cp src/js/dynamic-net-filtering.js $DES/js
|
cp src/js/dynamic-net-filtering.js $DES/js
|
||||||
cp src/js/filtering-context.js $DES/js
|
cp src/js/filtering-context.js $DES/js
|
||||||
cp src/js/globals.js $DES/js
|
|
||||||
cp src/js/hnswitches.js $DES/js
|
cp src/js/hnswitches.js $DES/js
|
||||||
cp src/js/hntrie.js $DES/js
|
cp src/js/hntrie.js $DES/js
|
||||||
cp src/js/static-filtering-parser.js $DES/js
|
cp src/js/static-filtering-parser.js $DES/js
|
||||||
|
Loading…
Reference in New Issue
Block a user