aboutsummaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/assets.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/js/assets.js b/js/assets.js
index 6f66c7e..bd2f86b 100644
--- a/js/assets.js
+++ b/js/assets.js
@@ -384,7 +384,8 @@ var readLocalFile = function(path, callback) {
var onCachedContentReady = function(details) {
//console.log('µBlock> readLocalFile("%s") / onCachedContentReady()', path);
- if ( !details.error && details.content !== '' ) {
+ // It's ok for user data to be empty
+ if ( !details.error && (details.content !== '' || reIsUserPath.test(path)) ) {
reportBack(details.content);
return;
}