diff --git a/html/src/vr.js b/html/src/vr.js
index 0a0e6695..22ed512e 100644
--- a/html/src/vr.js
+++ b/html/src/vr.js
@@ -727,9 +727,13 @@ speechSynthesis.getVoices();
$app.methods.updateVRConfigVars = function () {
var newConfig = sharedRepository.getObject('VRConfigVars');
- if ((newConfig) && (JSON.stringify(newConfig) !== JSON.stringify(this.config))) {
- this.config = newConfig;
- this.lastFeedEntry = [];
+ if (newConfig) {
+ if (JSON.stringify(newConfig) !== JSON.stringify(this.config)) {
+ this.config = newConfig;
+ this.lastFeedEntry = [];
+ }
+ } else {
+ throw 'config not set';
}
};
@@ -770,9 +774,6 @@ speechSynthesis.getVoices();
$app.methods.updateLoop = async function () {
try {
this.updateVRConfigVars();
- if (!this.config) {
- return;
- }
this.currentTime = new Date().toJSON();
this.currentUserStatus = sharedRepository.getString('current_user_status');
this.isGameRunning = sharedRepository.getBool('is_game_running');
diff --git a/html/src/vr.pug b/html/src/vr.pug
index 1c637755..52eafde6 100644
--- a/html/src/vr.pug
+++ b/html/src/vr.pug
@@ -15,7 +15,7 @@ html
.x-app#x-app(v-if="appType === '1'" class="x-app-type")
.x-container(style="flex:1")
.x-friend-list(ref="list" style="color:#aaa")
- template(v-if="config.minimalFeed")
+ template(v-if="config && config.minimalFeed")
template(v-for="feed in wristFeed")
.x-friend-item(v-if="feed.type === 'GPS'" :class="{ friend: feed.isFriend, favorite: feed.isFavorite }")
.detail