mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-29 13:56:32 +08:00
1 parent
69e2e52b96
commit
c10aa4dda7
1 file changed
+5
-1
@@ -5153,7 +5153,11 @@ function watchApplicationUpdates(checksum) {
|
||||
}
|
||||
const latest = nativeHost ? await nativeHost.call("update.check", {}) : await applicationChecksum("./", { method: "HEAD", cache: "no-store" });
|
||||
if (nativeHost) {
|
||||
el.refreshAppButton.hidden = !latest;
|
||||
const hidden = !latest;
|
||||
if (el.refreshAppButton.hidden !== hidden) {
|
||||
el.refreshAppButton.hidden = hidden;
|
||||
updateTitleBarRegions();
|
||||
}
|
||||
} else if (latest) {
|
||||
el.refreshAppButton.hidden = latest === checksum;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user