Index: lib/filterStorage.js |
=================================================================== |
--- a/lib/filterStorage.js |
+++ b/lib/filterStorage.js |
@@ -80,18 +80,18 @@ let FilterStorage = exports.FilterStorag |
if (file) |
file.append("patterns.ini"); |
} catch(e) {} |
} |
if (!file) |
Cu.reportError("Adblock Plus: Failed to resolve filter file location from extensions.adblockplus.patternsfile preference"); |
- this.__defineGetter__("sourceFile", () => file); |
- return this.sourceFile; |
+ Object.defineProperty(this, "sourceFile", {value: file}); |
+ return file; |
}, |
/** |
* Will be set to true if no patterns.ini file exists. |
* @type Boolean |
*/ |
firstRun: false, |