Skip to content

Commit

Permalink
Merge pull request #127 from Jkwok0714/update-license-url
Browse files Browse the repository at this point in the history
[#124] Updates license URL
  • Loading branch information
archywillhe committed Jan 11, 2024
2 parents c1df82e + 5def6c1 commit f58a14a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
},
"files.insertFinalNewline": true,
"editor.formatOnSave": true,
"editor.formatOnSaveMode": "file"
"editor.formatOnSaveMode": "file",
"cSpell.words": [
"insomnium"
]
// use prettier
}
3 changes: 3 additions & 0 deletions packages/insomnia/src/common/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,9 @@ export const getAppWebsiteBaseURL = () => env.INSOMNIA_APP_WEBSITE_URL || 'https
// GitHub API
export const getGitHubGraphQLApiURL = () => env.INSOMNIA_GITHUB_API_URL || 'https://api.github.com/graphql';

// License
export const getLicenseURL = () => env.INSOMNIUM_LICENSE_URL || 'https://github.com/ArchGPT/insomnium/blob/main/LICENSE';

// SYNC
export const DEFAULT_BRANCH_NAME = 'master';

Expand Down
3 changes: 2 additions & 1 deletion packages/insomnia/src/main/window-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
changelogUrl,
getAppBuildDate,
getAppVersion,
getLicenseURL,
getProductName,
isDevelopment,
isLinux,
Expand Down Expand Up @@ -392,7 +393,7 @@ export function createWindow() {
label: 'Show Software License',
click: () => {
// eslint-disable-next-line no-restricted-properties
shell.openExternal('https://insomnia.rest/license');
shell.openExternal(getLicenseURL());
},
},
],
Expand Down

0 comments on commit f58a14a

Please sign in to comment.