diff options
author | 2024-04-15 07:16:37 -0600 | |
---|---|---|
committer | 2024-04-15 07:16:37 -0600 | |
commit | cbba61b40112b41c43285a1a279969e68df1a2e9 (patch) | |
tree | 6f2e95326033396c5f7b79b48e5a3febb0877ff3 /src/webview | |
parent | 6.7.3-nightly.10 [skip ci] (diff) | |
download | ferdium-app-cbba61b40112b41c43285a1a279969e68df1a2e9.tar.gz ferdium-app-cbba61b40112b41c43285a1a279969e68df1a2e9.tar.zst ferdium-app-cbba61b40112b41c43285a1a279969e68df1a2e9.zip |
refactor: project maintenance (#1682)
- remove redundant `@adonisjs/auth`, `@adonisjs/session` and `@emotion/react` dependencies
- remove `.vscode` folder
- clean up some TS and ESLint issues
- migrate from deprecated "husky install" to "husky"
Diffstat (limited to 'src/webview')
-rw-r--r-- | src/webview/contextMenuBuilder.ts | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/webview/contextMenuBuilder.ts b/src/webview/contextMenuBuilder.ts index dd39560da..f81b051ee 100644 --- a/src/webview/contextMenuBuilder.ts +++ b/src/webview/contextMenuBuilder.ts | |||
@@ -288,11 +288,9 @@ export class ContextMenuBuilder { | |||
288 | this.addPaste(menu, menuInfo); | 288 | this.addPaste(menu, menuInfo); |
289 | this.addPastePlain(menu, menuInfo); | 289 | this.addPastePlain(menu, menuInfo); |
290 | this.addInspectElement(menu, menuInfo); | 290 | this.addInspectElement(menu, menuInfo); |
291 | // @ts-expect-error Expected 1 arguments, but got 2. | 291 | this.processMenu(menu); |
292 | this.processMenu(menu, menuInfo); | ||
293 | 292 | ||
294 | // @ts-expect-error Expected 2 arguments, but got 1. | 293 | this.copyPageUrl(menu, menuInfo); |
295 | this.copyPageUrl(menu); | ||
296 | this.goToHomePage(menu, menuInfo); | 294 | this.goToHomePage(menu, menuInfo); |
297 | this.openInBrowser(menu, menuInfo); | 295 | this.openInBrowser(menu, menuInfo); |
298 | 296 | ||
@@ -349,14 +347,12 @@ export class ContextMenuBuilder { | |||
349 | } | 347 | } |
350 | 348 | ||
351 | this.addInspectElement(menu, menuInfo); | 349 | this.addInspectElement(menu, menuInfo); |
352 | // @ts-expect-error Expected 1 arguments, but got 2. | 350 | this.processMenu(menu); |
353 | this.processMenu(menu, menuInfo); | ||
354 | 351 | ||
355 | this.addSeparator(menu); | 352 | this.addSeparator(menu); |
356 | this.goBack(menu); | 353 | this.goBack(menu); |
357 | this.goForward(menu); | 354 | this.goForward(menu); |
358 | // @ts-expect-error Expected 2 arguments, but got 1. | 355 | this.copyPageUrl(menu, menuInfo); |
359 | this.copyPageUrl(menu); | ||
360 | this.goToHomePage(menu, menuInfo); | 356 | this.goToHomePage(menu, menuInfo); |
361 | this.openInBrowser(menu, menuInfo); | 357 | this.openInBrowser(menu, menuInfo); |
362 | 358 | ||