mirror of https://github.com/gorhill/uBlock.git
use "let": this code is not meant for chromium
This commit is contained in:
parent
2598f48a34
commit
8116afabc4
|
@ -62,13 +62,11 @@ vAPI.net.registerListeners = function() {
|
||||||
};
|
};
|
||||||
// modern Chromium/WebExtensions: more types available.
|
// modern Chromium/WebExtensions: more types available.
|
||||||
if ( wrApi.ResourceType ) {
|
if ( wrApi.ResourceType ) {
|
||||||
(function() {
|
for ( let typeKey in wrApi.ResourceType ) {
|
||||||
for ( var typeKey in wrApi.ResourceType ) {
|
if ( wrApi.ResourceType.hasOwnProperty(typeKey) ) {
|
||||||
if ( wrApi.ResourceType.hasOwnProperty(typeKey) ) {
|
validTypes[wrApi.ResourceType[typeKey]] = true;
|
||||||
validTypes[wrApi.ResourceType[typeKey]] = true;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
})();
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var denormalizeTypes = function(aa) {
|
var denormalizeTypes = function(aa) {
|
||||||
|
|
Loading…
Reference in New Issue