Skip to content

Commit 1eae743

Browse files
committed
Improve naming
1 parent 774daa1 commit 1eae743

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

site/src/modules/resources/AppLink/AppLink.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,10 @@ export const AppLink: FC<AppLinkProps> = ({ app, workspace, agent }) => {
132132

133133
// This is an external URI like "vscode://", so
134134
// it needs to be opened with the browser protocol handler.
135-
const isBrowserProtocol = app.external && !app.url.startsWith("http");
135+
const shouldOpenAppExternally =
136+
app.external && !app.url.startsWith("http");
136137

137-
if (isBrowserProtocol) {
138+
if (shouldOpenAppExternally) {
138139
// This is a magic undocumented string that is replaced
139140
// with a brand-new session token from the backend.
140141
// This only exists for external URLs, and should only

0 commit comments

Comments
 (0)