diff options
author | Aditya Mangalampalli <aditya.mangalampalli@gmail.com> | 2022-04-15 02:00:25 -0700 |
---|---|---|
committer | Vijay A <vraravam@users.noreply.github.com> | 2022-04-16 21:57:57 +0530 |
commit | 210131ca184c3aa043371857c022aa1aa149efbf (patch) | |
tree | 6bc4e10a1540e55a66146c099bc468a12287425e /src/webview/lib | |
parent | Update submodule url to ferdium-recipes (#1) (diff) | |
download | ferdium-app-210131ca184c3aa043371857c022aa1aa149efbf.tar.gz ferdium-app-210131ca184c3aa043371857c022aa1aa149efbf.tar.zst ferdium-app-210131ca184c3aa043371857c022aa1aa149efbf.zip |
Matched casing for almost all replacements
Diffstat (limited to 'src/webview/lib')
-rw-r--r-- | src/webview/lib/RecipeWebview.ts | 2 | ||||
-rw-r--r-- | src/webview/lib/Userscript.ts | 12 |
2 files changed, 7 insertions, 7 deletions
diff --git a/src/webview/lib/RecipeWebview.ts b/src/webview/lib/RecipeWebview.ts index 09dc462ed..568c31255 100644 --- a/src/webview/lib/RecipeWebview.ts +++ b/src/webview/lib/RecipeWebview.ts | |||
@@ -2,7 +2,7 @@ import { ipcRenderer } from 'electron'; | |||
2 | import { BrowserWindow } from '@electron/remote'; | 2 | import { BrowserWindow } from '@electron/remote'; |
3 | import { pathExistsSync, readFileSync, existsSync } from 'fs-extra'; | 3 | import { pathExistsSync, readFileSync, existsSync } from 'fs-extra'; |
4 | 4 | ||
5 | const debug = require('debug')('Ferdi:Plugin:RecipeWebview'); | 5 | const debug = require('debug')('Ferdium:Plugin:RecipeWebview'); |
6 | 6 | ||
7 | class RecipeWebview { | 7 | class RecipeWebview { |
8 | badgeHandler: any; | 8 | badgeHandler: any; |
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 | } |