Skip to content

Commit

Permalink
gorhill#14 that's a horrible diff
Browse files Browse the repository at this point in the history
  • Loading branch information
jspenguin2017 committed Dec 10, 2017
1 parent 7a32942 commit 127ff13
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions src/js/storage.js
Original file line number Diff line number Diff line change
Expand Up @@ -879,17 +879,25 @@
}
onDone();
};

var onResourcesLoaded = function(details) {

// Patch 2017-12-09: Add nano-resources
var onNanoResourcesLoaded = function(details) {
if ( details.content !== '' ) {
content = details.content;
content += '\n\n' + details.content;
}
if ( µb.hiddenSettings.userResourcesLocation === 'unset' ) {
return onDone();
}
µb.assets.fetchText(µb.hiddenSettings.userResourcesLocation, onUserResourcesLoaded);
};

var onResourcesLoaded = function(details) {
if ( details.content !== '' ) {
content = details.content;
}
nano.assets.get('nano-resources', onNanoResourcesLoaded);
};

this.assets.get('ublock-resources', onResourcesLoaded);
};

Expand Down

0 comments on commit 127ff13

Please sign in to comment.