File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -769,10 +769,10 @@ index 096b9e23493539c9937940a56e555d95bbae38d9..ef37e614004f550f7b64eacd362f6894
769
769
remove(key: string, scope: StorageScope): void {
770
770
diff --git a/src/vs/server/browser/client.ts b/src/vs/server/browser/client.ts
771
771
new file mode 100644
772
- index 0000000000000000000000000000000000000000..c6eef331346ebc244a26e8b1e5919d192225b971
772
+ index 0000000000000000000000000000000000000000..772cd5d9e1c66d7893fa13e240df71b2b311c044
773
773
--- /dev/null
774
774
+++ b/src/vs/server/browser/client.ts
775
- @@ -0,0 +1,237 @@
775
+ @@ -0,0 +1,239 @@
776
776
+ import { Emitter } from 'vs/base/common/event';
777
777
+ import { URI } from 'vs/base/common/uri';
778
778
+ import { localize } from 'vs/nls';
@@ -925,10 +925,12 @@ index 0000000000000000000000000000000000000000..c6eef331346ebc244a26e8b1e5919d19
925
925
+
926
926
+ const logService = (services.get(ILogService) as ILogService);
927
927
+ 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"
928
930
+ const getUpdate = async (): Promise<void> => {
929
931
+ logService.debug("Checking for update...");
930
932
+
931
- + const response = await fetch("update/check" , {
933
+ + const response = await fetch(updateCheckEndpoint , {
932
934
+ headers: { "Accept": "application/json" },
933
935
+ });
934
936
+ if (!response.ok) {
You can’t perform that action at this time.
0 commit comments