| Index: lib/prefs.js |
| =================================================================== |
| --- a/lib/prefs.js |
| +++ b/lib/prefs.js |
| @@ -19,28 +19,26 @@ |
| // The values are hardcoded for now. |
| // |
| -let defaults = { |
| - __proto__: null, |
| - enabled: true, |
| - data_directory: "", |
| - patternsbackups: 5, |
| - patternsbackupinterval: 24, |
| - savestats: false, |
| - privateBrowsing: false, |
| - subscriptions_fallbackerrors: 5, |
| - subscriptions_fallbackurl: "https://adblockplus.org/getSubscription?version=%VERSION%&url=%SUBSCRIPTION%&downloadURL=%URL%&error=%ERROR%&channelStatus=%CHANNELSTATUS%&responseStatus=%RESPONSESTATUS%", |
| - subscriptions_autoupdate: true, |
| - subscriptions_exceptionsurl: "https://easylist-downloads.adblockplus.org/exceptionrules.txt", |
| - subscriptions_antiadblockurl: "https://easylist-downloads.adblockplus.org/antiadblockfilters.txt", |
| - documentation_link: "https://adblockplus.org/redirect?link=%LINK%&lang=%LANG%", |
| - notificationdata: {}, |
| - notificationurl: "https://notification.adblockplus.org/notification.json", |
| - stats_total: {}, |
| - show_statsinicon: true, |
| - show_statsinpopup: true, |
| - shouldShowBlockElementMenu: true, |
| - hidePlaceholders: true |
| -}; |
| +let defaults = Object.create(null); |
| +defaults.enabled = true; |
| +defaults.data_directory = ""; |
| +defaults.patternsbackups = 5; |
| +defaults.patternsbackupinterval = 24; |
| +defaults.savestats = false; |
| +defaults.privateBrowsing = false; |
| +defaults.subscriptions_fallbackerrors = 5; |
| +defaults.subscriptions_fallbackurl = "https://adblockplus.org/getSubscription?version=%VERSION%&url=%SUBSCRIPTION%&downloadURL=%URL%&error=%ERROR%&channelStatus=%CHANNELSTATUS%&responseStatus=%RESPONSESTATUS%"; |
| +defaults.subscriptions_autoupdate = true; |
| +defaults.subscriptions_exceptionsurl = "https://easylist-downloads.adblockplus.org/exceptionrules.txt"; |
| +defaults.subscriptions_antiadblockurl = "https://easylist-downloads.adblockplus.org/antiadblockfilters.txt"; |
| +defaults.documentation_link = "https://adblockplus.org/redirect?link=%LINK%&lang=%LANG%"; |
| +defaults.notificationdata = {}; |
| +defaults.notificationurl = "https://notification.adblockplus.org/notification.json"; |
| +defaults.stats_total = {}; |
| +defaults.show_statsinicon = true; |
| +defaults.show_statsinpopup = true; |
| +defaults.shouldShowBlockElementMenu = true; |
| +defaults.hidePlaceholders = true; |
| let listeners = []; |