Skip to content

Commit 7fd7b39

Browse files
Enable automatic instance hopping for Flex (#190)
* Enable automatic instance hopping for Flex * use `window.location.origin` when setting endpoint
1 parent d6c1189 commit 7fd7b39

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/contents/gitpod-dashboard.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const isSiteGitpod = (): boolean => {
1414
};
1515

1616
export const config: PlasmoCSConfig = {
17-
matches: ["https://gitpod.io/*", "https://*.gitpod.cloud/*"],
17+
matches: ["https://gitpod.io/*", "https://app.gitpod.io/*", "https://*.gitpod.cloud/*"],
1818
};
1919

2020
const storage = new Storage();
@@ -32,7 +32,7 @@ const automaticallyUpdateEndpoint = async () => {
3232
!currentlyStoredEndpoint
3333
) {
3434
console.log(`Gitpod extension: switching default endpoint to ${currentHost}.`);
35-
await storage.set(STORAGE_KEY_ADDRESS, parseEndpoint(currentHost));
35+
await storage.set(STORAGE_KEY_ADDRESS, parseEndpoint(window.location.origin));
3636
}
3737
}
3838
};

0 commit comments

Comments
 (0)