-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
4 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -218,15 +218,15 @@ var url = rootUrl + prop + '.js' | |
} | ||
} | ||
} | ||
//addFsStruct(lazyfills, window, 'cdn.jsdelivr.net/gh/nuxodin/[email protected]/polyfills/'); | ||
addFsStruct(lazyfills, window, 'localhost/github/lazyfill/polyfills/'); | ||
addFsStruct(lazyfills, window, 'cdn.jsdelivr.net/gh/nuxodin/[email protected]/polyfills/'); | ||
//addFsStruct(lazyfills, window, 'localhost/github/lazyfill/polyfills/'); | ||
|
||
|
||
var url; | ||
for (url in urls) addGetters(url, urls[url]); | ||
|
||
|
||
/* To list polyfills in the readme: */ | ||
/* To list polyfills in the readme: * | ||
//IteratorPrototype.name = 'Iterator'; | ||
//AsyncIteratorPrototype.name = 'AsyncIterator'; | ||
CSS.name = 'CSS'; | ||
|
@@ -288,11 +288,7 @@ function addGetters(url, props) { | |
//delete obj[prop]; | ||
deleteGetters(); // we have to delete all assigned getters for a url, otherwise the script is parsed anew with every polyfill! | ||
console.log(prop+' needed > loading sync, you may want to add the polyfill '+url); | ||
if (url[0] === 'l') { | ||
loadScriptSync('http://'+url); | ||
} else { | ||
loadScriptSync('https://'+url); | ||
} | ||
loadScriptSync('https://'+url); | ||
//if (this[prop] === undefined) console.error('lazyfill: the polyfill should have added the property "'+prop+'"'); | ||
return this[prop]; | ||
}, | ||
|