Skip to content

Commit 3923520

Browse files
committed
remove no longer needed platform-dependent polyfill.js
1 parent 9baf17f commit 3923520

5 files changed

Lines changed: 4 additions & 111 deletions

File tree

platform/chromium/polyfill.js

Lines changed: 0 additions & 74 deletions
This file was deleted.

platform/webext/polyfill.js

Lines changed: 0 additions & 30 deletions
This file was deleted.

src/background.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
<title>uBlock Origin</title>
66
</head>
77
<body>
8-
<script src="js/polyfill.js"></script>
98
<script src="lib/punycode.js"></script>
109
<script src="lib/publicsuffixlist.js"></script>
1110
<script src="js/vapi.js"></script>

src/js/background.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020
*/
2121

2222

23-
/* global objectAssign */
24-
2523
'use strict';
2624

2725
/******************************************************************************/
@@ -96,7 +94,7 @@ var µBlock = (function() { // jshint ignore:line
9694

9795
hiddenSettingsDefault: hiddenSettingsDefault,
9896
hiddenSettings: (function() {
99-
var out = objectAssign({}, hiddenSettingsDefault),
97+
var out = Object.assign({}, hiddenSettingsDefault),
10098
json = vAPI.localStorage.getItem('immediateHiddenSettings');
10199
if ( typeof json === 'string' ) {
102100
try {

src/js/storage.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
Home: https://github.com/gorhill/uBlock
2020
*/
2121

22-
/* global objectAssign, punycode, publicSuffixList */
22+
/* global punycode, publicSuffixList */
2323

2424
'use strict';
2525

@@ -146,7 +146,7 @@
146146
/******************************************************************************/
147147

148148
µBlock.hiddenSettingsFromString = function(raw) {
149-
var out = objectAssign({}, this.hiddenSettingsDefault),
149+
var out = Object.assign({}, this.hiddenSettingsDefault),
150150
lineIter = new this.LineIterator(raw),
151151
line, matches, name, value;
152152
while ( lineIter.eot() === false ) {
@@ -575,7 +575,7 @@
575575
if ( entries.hasOwnProperty(assetKey) === false ) { continue; }
576576
entry = entries[assetKey];
577577
if ( entry.content !== 'filters' ) { continue; }
578-
newAvailableLists[assetKey] = objectAssign({}, entry);
578+
newAvailableLists[assetKey] = Object.assign({}, entry);
579579
}
580580

581581
// Load set of currently selected filter lists.

0 commit comments

Comments
 (0)