diff options
Diffstat (limited to 'src/webview/lib/Userscript.ts')
-rw-r--r-- | src/webview/lib/Userscript.ts | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/webview/lib/Userscript.ts b/src/webview/lib/Userscript.ts index c50941dc7..f02a8f135 100644 --- a/src/webview/lib/Userscript.ts +++ b/src/webview/lib/Userscript.ts | |||
@@ -14,7 +14,7 @@ export default class Userscript { | |||
14 | // Service configuration | 14 | // Service configuration |
15 | config = {}; | 15 | config = {}; |
16 | 16 | ||
17 | // Ferdi and service settings | 17 | // Ferdium and service settings |
18 | settings = {}; | 18 | settings = {}; |
19 | 19 | ||
20 | constructor(recipe, controller, config) { | 20 | constructor(recipe, controller, config) { |
@@ -25,7 +25,7 @@ export default class Userscript { | |||
25 | } | 25 | } |
26 | 26 | ||
27 | /** | 27 | /** |
28 | * Set internal copy of Ferdi's settings. | 28 | * Set internal copy of Ferdium's settings. |
29 | * This is only used internally and can not be used to change any settings | 29 | * This is only used internally and can not be used to change any settings |
30 | * | 30 | * |
31 | * @param {*} settings | 31 | * @param {*} settings |
@@ -88,7 +88,7 @@ export default class Userscript { | |||
88 | * @param {any} value | 88 | * @param {any} value |
89 | */ | 89 | */ |
90 | set(key: string, value: string) { | 90 | set(key: string, value: string) { |
91 | window.localStorage.setItem(`ferdi-user-${key}`, JSON.stringify(value)); | 91 | window.localStorage.setItem(`ferdium-user-${key}`, JSON.stringify(value)); |
92 | } | 92 | } |
93 | 93 | ||
94 | /** | 94 | /** |
@@ -98,10 +98,10 @@ export default class Userscript { | |||
98 | * @return Value of the key | 98 | * @return Value of the key |
99 | */ | 99 | */ |
100 | get(key: string) { | 100 | get(key: string) { |
101 | const ferdiUserKey = window.localStorage.getItem(`ferdi-user-${key}`); | 101 | const ferdiumUserKey = window.localStorage.getItem(`ferdium-user-${key}`); |
102 | 102 | ||
103 | if (ferdiUserKey) { | 103 | if (ferdiumUserKey) { |
104 | return JSON.parse(ferdiUserKey); | 104 | return JSON.parse(ferdiumUserKey); |
105 | } | 105 | } |
106 | } | 106 | } |
107 | } | 107 | } |