File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -769,10 +769,10 @@ index 096b9e23493539c9937940a56e555d95bbae38d9..ef37e614004f550f7b64eacd362f6894
769769 remove(key: string, scope: StorageScope): void {
770770diff --git a/src/vs/server/browser/client.ts b/src/vs/server/browser/client.ts
771771new file mode 100644
772- index 0000000000000000000000000000000000000000..c6eef331346ebc244a26e8b1e5919d192225b971
772+ index 0000000000000000000000000000000000000000..772cd5d9e1c66d7893fa13e240df71b2b311c044
773773--- /dev/null
774774+++ b/src/vs/server/browser/client.ts
775- @@ -0,0 +1,237 @@
775+ @@ -0,0 +1,239 @@
776776+ import { Emitter } from 'vs/base/common/event';
777777+ import { URI } from 'vs/base/common/uri';
778778+ import { localize } from 'vs/nls';
@@ -925,10 +925,12 @@ index 0000000000000000000000000000000000000000..c6eef331346ebc244a26e8b1e5919d19
925925+
926926+ const logService = (services.get(ILogService) as ILogService);
927927+ const storageService = (services.get(IStorageService) as IStorageService);
928+ + // We set this here first in case the path changes.
929+ + const updateCheckEndpoint = window.location.pathname + "/update/check"
928930+ const getUpdate = async (): Promise<void> => {
929931+ logService.debug("Checking for update...");
930932+
931- + const response = await fetch("update/check" , {
933+ + const response = await fetch(updateCheckEndpoint , {
932934+ headers: { "Accept": "application/json" },
933935+ });
934936+ if (!response.ok) {
You can’t perform that action at this time.
0 commit comments