forked from abner/for-legacy-web
chore: duct-tape fix for semver library breaking
parent
00718245f9
commit
4e22ccb2f7
|
|
@ -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;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue