MCPcopy Index your code
hub / github.com/gitify-app/gitify / openExternalLink

Function openExternalLink

src/renderer/utils/system/comms.ts:15–28  ·  view source on GitHub ↗
(url: Link)

Source from the content-addressed store, hash-verified

13 * @param url - The URL to open.
14 */
15export function openExternalLink(url: Link): void {
16 // Load the state from local storage to avoid having to pass settings as a parameter
17 const { settings } = loadState();
18 const openPreference = settings
19 ? settings.openLinks
20 : defaultSettings.openLinks;
21
22 if (url.toLowerCase().startsWith('https://')) {
23 window.gitify.openExternalLink(
24 url,
25 openPreference === OpenPreference.FOREGROUND,
26 );
27 }
28}
29
30/**
31 * Returns the current application version string.

Callers 15

performGitHubWebOAuthFunction · 0.90
openGitifyReleaseNotesFunction · 0.90
openGitHubNotificationsFunction · 0.90
openGitHubIssuesFunction · 0.90
openGitHubPullsFunction · 0.90
openAccountProfileFunction · 0.90
openUserProfileFunction · 0.90
openHostFunction · 0.90
openDeveloperSettingsFunction · 0.90
openRepositoryFunction · 0.90
openNotificationFunction · 0.90

Calls 1

loadStateFunction · 0.90

Tested by

no test coverage detected