use "let": this code is not meant for chromium

This commit is contained in:
gorhill 2017-09-02 09:57:44 -04:00
parent 2598f48a34
commit 8116afabc4
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 4 additions and 6 deletions

View File

@ -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) {