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/contextMenuBuilder.ts | |
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/contextMenuBuilder.ts')
-rw-r--r-- | src/webview/contextMenuBuilder.ts | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/webview/contextMenuBuilder.ts b/src/webview/contextMenuBuilder.ts index 7b8c6cb2d..7bd86556e 100644 --- a/src/webview/contextMenuBuilder.ts +++ b/src/webview/contextMenuBuilder.ts | |||
@@ -1,7 +1,7 @@ | |||
1 | /** | 1 | /** |
2 | * Context Menu builder. | 2 | * Context Menu builder. |
3 | * | 3 | * |
4 | * Based on "electron-spellchecker"'s ContextMenuBuilder but customized for Ferdi | 4 | * Based on "electron-spellchecker"'s ContextMenuBuilder but customized for Ferdium |
5 | * and for usage with Electron's build-in spellchecker | 5 | * and for usage with Electron's build-in spellchecker |
6 | * | 6 | * |
7 | * Source: https://github.com/electron-userland/electron-spellchecker/blob/master/src/context-menu-builder.js | 7 | * Source: https://github.com/electron-userland/electron-spellchecker/blob/master/src/context-menu-builder.js |
@@ -29,7 +29,7 @@ interface ContextMenuStringTable { | |||
29 | pasteAndMatchStyle: () => string; | 29 | pasteAndMatchStyle: () => string; |
30 | searchWith: ({ searchEngine }: { searchEngine: string }) => string; | 30 | searchWith: ({ searchEngine }: { searchEngine: string }) => string; |
31 | openLinkUrl: () => string; | 31 | openLinkUrl: () => string; |
32 | openLinkInFerdiUrl: () => string; | 32 | openLinkInFerdiumUrl: () => string; |
33 | openInBrowser: () => string; | 33 | openInBrowser: () => string; |
34 | copyLinkUrl: () => string; | 34 | copyLinkUrl: () => string; |
35 | copyImageUrl: () => string; | 35 | copyImageUrl: () => string; |
@@ -53,7 +53,7 @@ const contextMenuStringTable: ContextMenuStringTable = { | |||
53 | pasteAndMatchStyle: () => 'Paste and match style', | 53 | pasteAndMatchStyle: () => 'Paste and match style', |
54 | searchWith: ({ searchEngine }) => `Search with ${searchEngine}`, | 54 | searchWith: ({ searchEngine }) => `Search with ${searchEngine}`, |
55 | openLinkUrl: () => 'Open Link', | 55 | openLinkUrl: () => 'Open Link', |
56 | openLinkInFerdiUrl: () => 'Open Link in Ferdi', | 56 | openLinkInFerdiumUrl: () => 'Open Link in Ferdium', |
57 | openInBrowser: () => 'Open in Browser', | 57 | openInBrowser: () => 'Open in Browser', |
58 | copyLinkUrl: () => 'Copy Link', | 58 | copyLinkUrl: () => 'Copy Link', |
59 | copyImageUrl: () => 'Copy Image Address', | 59 | copyImageUrl: () => 'Copy Image Address', |
@@ -222,8 +222,8 @@ export class ContextMenuBuilder { | |||
222 | }, | 222 | }, |
223 | }); | 223 | }); |
224 | 224 | ||
225 | const openInFerdiLink = new MenuItem({ | 225 | const openInFerdiumLink = new MenuItem({ |
226 | label: this.stringTable.openLinkInFerdiUrl(), | 226 | label: this.stringTable.openLinkInFerdiumUrl(), |
227 | click: () => { | 227 | click: () => { |
228 | window.location.href = menuInfo.linkURL; | 228 | window.location.href = menuInfo.linkURL; |
229 | }, | 229 | }, |
@@ -231,7 +231,7 @@ export class ContextMenuBuilder { | |||
231 | 231 | ||
232 | menu.append(copyLink); | 232 | menu.append(copyLink); |
233 | menu.append(openLink); | 233 | menu.append(openLink); |
234 | menu.append(openInFerdiLink); | 234 | menu.append(openInFerdiumLink); |
235 | 235 | ||
236 | if (this.isSrcUrlValid(menuInfo)) { | 236 | if (this.isSrcUrlValid(menuInfo)) { |
237 | this.addSeparator(menu); | 237 | this.addSeparator(menu); |