Skip to content

Commit

Permalink
remove localhost-testing
Browse files Browse the repository at this point in the history
  • Loading branch information
nuxodin committed Jun 23, 2021
1 parent e5a8a01 commit 4a4cdc3
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions mod.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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];
},
Expand Down

0 comments on commit 4a4cdc3

Please sign in to comment.