Skip to content

Commit e0ea3fc

Browse files
committed
fix(app-router): abort cached config reading if disabled
This is a bug that app-router will update with a cached serverURLs even it is disabled in the beginning.
1 parent 9ff9bc4 commit e0ea3fc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/app-router.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ function AppRouter(AV) {
66
this.lockedUntil = 0;
77
Cache.getAsync('serverURLs')
88
.then(data => {
9+
if (this.disabled) return;
910
if (!data) return this.lock(0);
1011
const { serverURLs, lockedUntil } = data;
1112
this.AV._setServerURLs(serverURLs, false);

0 commit comments

Comments
 (0)