Skip to content

Commit 2f1fa24

Browse files
committed
fix: use correct storage type
1 parent cedbc99 commit 2f1fa24

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

patches/update-check.diff

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ Index: code-server/lib/vscode/src/vs/workbench/browser/client.ts
5757
+ return;
5858
+ }
5959
+
60-
+ const lastNoti = this.storageService.getNumber('csLastUpdateNotification', StorageScope.GLOBAL);
60+
+ const lastNoti = this.storageService.getNumber('csLastUpdateNotification', StorageScope.APPLICATION);
6161
+ if (lastNoti) {
6262
+ // Only remind them again after 1 week.
6363
+ const timeout = 1000 * 60 * 60 * 24 * 7;
@@ -67,7 +67,7 @@ Index: code-server/lib/vscode/src/vs/workbench/browser/client.ts
6767
+ }
6868
+ }
6969
+
70-
+ this.storageService.store('csLastUpdateNotification', Date.now(), StorageScope.GLOBAL, StorageTarget.MACHINE);
70+
+ this.storageService.store('csLastUpdateNotification', Date.now(), StorageScope.APPLICATION, StorageTarget.MACHINE);
7171
+
7272
+ this.notificationService.notify({
7373
+ severity: Severity.Info,

0 commit comments

Comments
 (0)