summaryrefslogtreecommitdiff
path: root/src/bg
diff options
context:
space:
mode:
authorhackademix2018-09-15 22:10:19 +0200
committerhackademix2018-09-15 22:11:31 +0200
commite4e1c83f2cac33341d9ad132dea8ca90c15487a4 (patch)
treeb4848028cb557c4f5f1e2cef8d5ee99697b74cb0 /src/bg
parent297fec781f1b49c6dd06578139742d4e841cc433 (diff)
downloadnoscript-e4e1c83f2cac33341d9ad132dea8ca90c15487a4.tar.gz
noscript-e4e1c83f2cac33341d9ad132dea8ca90c15487a4.tar.xz
noscript-e4e1c83f2cac33341d9ad132dea8ca90c15487a4.zip
Fixed line endings.
Diffstat (limited to 'src/bg')
-rw-r--r--src/bg/Defaults.js (renamed from src/bg/defaults.js)76
1 files changed, 38 insertions, 38 deletions
diff --git a/src/bg/defaults.js b/src/bg/Defaults.js
index 7170743..ef2311f 100644
--- a/src/bg/defaults.js
+++ b/src/bg/Defaults.js
@@ -1,38 +1,38 @@
-'use strict';
-
-var Defaults = {
- async init() {
- let defaults = {
- local: {
- debug: false,
- showCtxMenuItem: true,
- showCountBadge: true,
- showFullAddresses: false,
- },
- sync: {
- "global": false,
- "xss": true,
- "clearclick": true
- }
- };
- let defaultsClone = JSON.parse(JSON.stringify(defaults));
-
- for (let [k, v] of Object.entries(defaults)) {
- let store = await Storage.get(k, k);
- if (k in store) {
- Object.assign(v, store[k]);
- }
- v.storage = k;
- }
-
- Object.assign(ns, defaults);
-
- // dynamic settings
- if (!ns.local.uuid) {
- ns.local.uuid = uuid();
- await ns.save(ns.local);
- }
-
- return ns.defaults = defaultsClone;
- }
-};
+'use strict';
+
+var Defaults = {
+ async init() {
+ let defaults = {
+ local: {
+ debug: false,
+ showCtxMenuItem: true,
+ showCountBadge: true,
+ showFullAddresses: false,
+ },
+ sync: {
+ "global": false,
+ "xss": true,
+ "clearclick": true
+ }
+ };
+ let defaultsClone = JSON.parse(JSON.stringify(defaults));
+
+ for (let [k, v] of Object.entries(defaults)) {
+ let store = await Storage.get(k, k);
+ if (k in store) {
+ Object.assign(v, store[k]);
+ }
+ v.storage = k;
+ }
+
+ Object.assign(ns, defaults);
+
+ // dynamic settings
+ if (!ns.local.uuid) {
+ ns.local.uuid = uuid();
+ await ns.save(ns.local);
+ }
+
+ return ns.defaults = defaultsClone;
+ }
+};