mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-08 01:45:28 +00:00
chore: duct-tape fix for semver library breaking
This commit is contained in:
@@ -41,7 +41,7 @@ async function checkVersion() {
|
|||||||
(res) => res.json(),
|
(res) => res.json(),
|
||||||
)) as { version: string };
|
)) as { version: string };
|
||||||
|
|
||||||
if (!semver.satisfies(APP_VERSION, version)) {
|
if (!semver.satisfies(APP_VERSION, version) && APP_VERSION !== version) {
|
||||||
// Let the worker know we should immediately refresh
|
// Let the worker know we should immediately refresh
|
||||||
forceUpdate = true;
|
forceUpdate = true;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user