Skip to content

Commit d788ab9

Browse files
matifaliblink-so[bot]deansheather
authored
feat: improve AppLink error message for coder:// URLs (#18444)
Co-authored-by: blink-so[bot] <211532188+blink-so[bot]@users.noreply.github.com> Co-authored-by: Dean Sheather <dean@deansheather.com>
1 parent bacdc28 commit d788ab9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

site/src/modules/apps/useAppLink.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,17 @@ export const useAppLink = (
5656
(app.url.startsWith("jetbrains-gateway:") ||
5757
app.url.startsWith("jetbrains:"));
5858

59+
// Check if this is a coder:// URL
60+
const isCoderApp = app.url?.startsWith("coder:");
61+
5962
if (isJetBrainsApp) {
6063
displayError(
6164
`To use ${label}, you need to have JetBrains Toolbox installed.`,
6265
);
66+
} else if (isCoderApp) {
67+
displayError(
68+
`To use ${label} you need to have Coder Desktop installed`,
69+
);
6370
} else {
6471
displayError(`${label} must be installed first.`);
6572
}

0 commit comments

Comments
 (0)