Skip to content

Commit

Permalink
Update mod.js
Browse files Browse the repository at this point in the history
  • Loading branch information
nuxodin committed May 27, 2022
1 parent 849e793 commit 71820aa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mod.js
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ function addFsStruct(obj, realObj, rootUrl){
urls[url][prop].push(realObj);
} else {
if (realObj[prop]===undefined) {
console.warn('lazyfill: Object '+prop+' not defined to polyfill its properties');
console.warn('πŸ’Š lazyfill: Object '+prop+' not defined to polyfill its properties!');
} else {
addFsStruct(obj[prop], realObj[prop], rootUrl + prop + '/');
}
Expand Down Expand Up @@ -290,7 +290,7 @@ output += '</ul>'
console.log(output)
/* */

console.log('lazyfill: getters added');
console.log('πŸ’Š lazyfill: getters added, ready!');

function addCombo(url, obj, target) {
var prop;
Expand Down Expand Up @@ -324,7 +324,7 @@ function addGetters(url, props) {
// try { throw new Error(); } catch (e) { console.log(e.stack) } // track where it has been added
//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);
console.log('πŸ’Š lazyfill: "'+prop+'" polyfilled (sync!), you need the polyfill '+url);

// umd
window.exports = {};
Expand Down Expand Up @@ -397,7 +397,7 @@ function loadScriptSync(path) {
document.documentElement.firstChild.appendChild(elem);
elem.setAttribute('data-src',path);
} else {
console.warn('lazyfill: load failed '+path)
console.warn('πŸ’Š lazyfill: load failed '+path)
}
}
function loadScriptAsync(path) {
Expand Down

0 comments on commit 71820aa

Please sign in to comment.