We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f6c215 commit 7e62878Copy full SHA for 7e62878
components/dashboard/src/service/service.tsx
@@ -193,10 +193,8 @@ export class IDEFrontendService implements IDEFrontendDashboardService.IServer {
193
const desktopLink = new URL(url);
194
// allow to redirect only for whitelisted trusted protocols
195
// security: IDE-69
196
- redirect =
197
- desktopLink.protocol === "vscode:" ||
198
- desktopLink.protocol === "vscode-insiders:" ||
199
- desktopLink.protocol === "jetbrains-gateway:";
+ const trustedProtocols = ["vscode:", "vscode-insiders:", "jetbrains-gateway:"];
+ redirect = trustedProtocols.includes(desktopLink.protocol);
200
} catch (e) {
201
console.error("invalid desktop link:", e);
202
}
0 commit comments