Spaces:
Sleeping
Sleeping
Keldos
commited on
Commit
·
08e5fa2
1
Parent(s):
a8a34a0
hotfix: 修复更新按钮无法点击的问题
Browse files
web_assets/javascript/updater.js
CHANGED
@@ -118,12 +118,12 @@ async function updateLatestVersion() {
|
|
118 |
} else {
|
119 |
noUpdate("Local version check failed, it seems to be a local rivision. <br>But your revision is newer than the latest release.");
|
120 |
gradioApp().classList.add('is-outdated');
|
|
|
121 |
}
|
122 |
}
|
123 |
}
|
124 |
currentTime = new Date().getTime();
|
125 |
localStorage.setItem('lastCheckTime', currentTime);
|
126 |
-
disableUpdateBtn_enableCancelBtn()
|
127 |
} catch (error) {
|
128 |
console.error(error);
|
129 |
disableUpdateBtn_enableCancelBtn()
|
|
|
118 |
} else {
|
119 |
noUpdate("Local version check failed, it seems to be a local rivision. <br>But your revision is newer than the latest release.");
|
120 |
gradioApp().classList.add('is-outdated');
|
121 |
+
enableUpdateBtns()
|
122 |
}
|
123 |
}
|
124 |
}
|
125 |
currentTime = new Date().getTime();
|
126 |
localStorage.setItem('lastCheckTime', currentTime);
|
|
|
127 |
} catch (error) {
|
128 |
console.error(error);
|
129 |
disableUpdateBtn_enableCancelBtn()
|