soulnet-dsh 0.1.4 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/client.js +12 -1
- package/lib/client.js.map +1 -1
- package/lib/index.js +6 -1
- package/lib/index.js.map +1 -1
- package/lib/types/client/upgrade-store.d.ts +1 -0
- package/package.json +6 -6
package/lib/client.js
CHANGED
|
@@ -4308,7 +4308,7 @@ window.__ModuleLoader__.load({
|
|
|
4308
4308
|
*/
|
|
4309
4309
|
check = async (options = {}) => {
|
|
4310
4310
|
if (this.snapshot.phase === "checking" || this.snapshot.phase === "installing" || this.snapshot.phase === "restarting") return;
|
|
4311
|
-
if (options.silent === true && this.checkedOnce) return;
|
|
4311
|
+
if (options.silent === true && this.checkedOnce && options.refresh !== true) return;
|
|
4312
4312
|
this.checkedOnce = true;
|
|
4313
4313
|
this.set({
|
|
4314
4314
|
phase: "checking",
|
|
@@ -11561,6 +11561,17 @@ body[data-ds-dark-theme] .sm-page-root {
|
|
|
11561
11561
|
inject: overlayInjected
|
|
11562
11562
|
}, InboxOverlay));
|
|
11563
11563
|
upgradeStore.check({ silent: true });
|
|
11564
|
+
ctx.effect(() => {
|
|
11565
|
+
const timer = setInterval(() => {
|
|
11566
|
+
upgradeStore.check({
|
|
11567
|
+
silent: true,
|
|
11568
|
+
refresh: true
|
|
11569
|
+
});
|
|
11570
|
+
}, 18e5);
|
|
11571
|
+
return () => {
|
|
11572
|
+
clearInterval(timer);
|
|
11573
|
+
};
|
|
11574
|
+
});
|
|
11564
11575
|
const settingsInjected = () => ({
|
|
11565
11576
|
openSession,
|
|
11566
11577
|
scope
|