Elffuss BraidHub

kikocis/continue public

add if statement to check url starts with "http" then go to url directly
Changeset0f7346762a03d78da5c5b83dc73bbd55444f041f15bf384ad4e763b47162f332
Authortommypurcell <tommypurcelljr@gmail.com> · 2025-09-20 00:15 -07:00
Committertommypurcell <tommypurcelljr@gmail.com> · 2025-09-20 00:15 -07:00
Parents21a32b8e3b8e

Browse the files at this changeset

1 file changed

modified core/core.ts +4 −0
@@ -458,6 +458,10 @@
458458
459459 on("controlPlane/openUrl", async (msg) => {
460460 const env = await getControlPlaneEnv(this.ide.getIdeSettings());
461+ if (msg.data.path.startsWith("http")) {
462+ await this.messenger.request("openUrl", msg.data.path);
463+ return;
464+ }
461465 const urlPath = msg.data.path.startsWith("/")
462466 ? msg.data.path.slice(1)
463467 : msg.data.path;