We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1092c7 commit 9b0c89cCopy full SHA for 9b0c89c
src/Templates/Boilerplate/Bit.Boilerplate/src/Client/Boilerplate.Client.Core/Scripts/app.ts
@@ -75,9 +75,14 @@ class App {
75
};
76
//#endif
77
78
- public static forceUpdate() {
79
- (window as any).BitBswupProgress.config({ autoReload: true });
80
- (window as any).BitBswup.checkForUpdate();
+ public static async forceUpdate() {
+ const bswup = (window as any).BitBswup;
+ const bswupProgress = (window as any).BitBswupProgress;
81
+
82
+ if (await bswup.skipWaiting()) return;
83
84
+ bswupProgress.config({ autoReload: true });
85
+ bswup.checkForUpdate();
86
}
87
88
0 commit comments