Skip to content

Commit

Permalink
Move handling mailto links into own dedicated method
Browse files Browse the repository at this point in the history
  • Loading branch information
adzialocha committed Nov 3, 2023
1 parent 31c56db commit 6cc2077
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/renderer/runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import type { dialog, app } from 'electron'
import { getLogger } from '../shared/logger'
import processOpenQrUrl from './components/helpers/OpenQrUrl'

Check failure on line 12 in src/renderer/runtime.ts

View workflow job for this annotation

GitHub Actions / Code Validation

'processOpenQrUrl' is defined but never used. Allowed unused vars must match /^_/u
import { LocaleData } from '../shared/localize'
import processMailtoUrl from './components/helpers/MailtoUrl'

const log = getLogger('renderer/runtime')

Expand Down Expand Up @@ -499,7 +500,7 @@ class Electron implements Runtime {
}
openLink(link: string): void {
if (link.startsWith('mailto:')) {
processOpenQrUrl(link)
processMailtoUrl(link)
} else if (link.startsWith('http:') || link.startsWith('https:')) {
ipcBackend.invoke('electron.shell.openExternal', link)
} else {
Expand Down

0 comments on commit 6cc2077

Please sign in to comment.