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.
|
||||
if ( wrApi.ResourceType ) {
|
||||
(function() {
|
||||
for ( var typeKey in wrApi.ResourceType ) {
|
||||
if ( wrApi.ResourceType.hasOwnProperty(typeKey) ) {
|
||||
validTypes[wrApi.ResourceType[typeKey]] = true;
|
||||
}
|
||||
for ( let typeKey in wrApi.ResourceType ) {
|
||||
if ( wrApi.ResourceType.hasOwnProperty(typeKey) ) {
|
||||
validTypes[wrApi.ResourceType[typeKey]] = true;
|
||||
}
|
||||
})();
|
||||
}
|
||||
}
|
||||
|
||||
var denormalizeTypes = function(aa) {
|
||||
|
|
Loading…
Reference in New Issue