Skip to content

Commit

Permalink
handling of offline:offline
Browse files Browse the repository at this point in the history
  • Loading branch information
Natsumi-sama committed Oct 24, 2024
1 parent 49742f1 commit 12ed7fa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion html/src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,7 @@ speechSynthesis.getVoices();
canRequestInvite: false,
strict: false
};
if (_tag === 'offline') {
if (_tag === 'offline' || _tag === 'offline:offline') {
ctx.isOffline = true;
} else if (_tag === 'private') {
ctx.isPrivate = true;
Expand Down Expand Up @@ -27417,6 +27417,7 @@ speechSynthesis.getVoices();
return false;
}
switch (instanceId) {
case 'offline:offline':
case 'offline':
case 'private':
case 'traveling':
Expand Down Expand Up @@ -27497,6 +27498,10 @@ speechSynthesis.getVoices();
this.updateCurrentUserLocation();

// janky gameLog support for Quest
if (this.isGameRunning) {
// with the current state of things, lets not run this if we don't need to
return;
}
var lastLocation = '';
for (var i = this.gameLogSessionTable.length - 1; i > -1; i--) {
var item = this.gameLogSessionTable[i];
Expand Down
2 changes: 1 addition & 1 deletion html/src/vr.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ Vue.component('marquee-text', MarqueeText);
canRequestInvite: false,
strict: false
};
if (_tag === 'offline') {
if (_tag === 'offline' || _tag === 'offline:offline') {
ctx.isOffline = true;
} else if (_tag === 'private') {
ctx.isPrivate = true;
Expand Down

0 comments on commit 12ed7fa

Please sign in to comment.