Skip to content

Commit

Permalink
Fix desktop notification when set to inside/outside VR
Browse files Browse the repository at this point in the history
  • Loading branch information
Natsumi-sama committed Oct 24, 2024
1 parent 1eefbb4 commit 49742f1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
7 changes: 2 additions & 5 deletions html/src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -6710,11 +6710,8 @@ speechSynthesis.getVoices();
var playDesktopToast = false;
if (
this.desktopToast === 'Always' ||
(this.desktopToast === 'Outside VR' &&
(this.isGameNoVR || !this.isGameRunning)) ||
(this.desktopToast === 'Inside VR' &&
!this.isGameNoVR &&
this.isGameRunning) ||
(this.desktopToast === 'Outside VR' && !this.isSteamVRRunning) ||
(this.desktopToast === 'Inside VR' && this.isSteamVRRunning) ||
(this.desktopToast === 'Game Closed' && !this.isGameRunning) ||
(this.desktopToast === 'Game Running' && this.isGameRunning) ||
(this.desktopToast === 'Desktop Mode' &&
Expand Down
3 changes: 2 additions & 1 deletion html/src/vr.js
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ Vue.component('marquee-text', MarqueeText);
watch: {},
el: '#x-app',
mounted() {
workerTimers.setTimeout(() => AppApiVr.VrInit(), 1000);
workerTimers.setTimeout(() => AppApiVr.VrInit(), 5000);
if (this.appType === '1') {
this.refreshCustomScript();
this.updateStatsLoop();
Expand Down Expand Up @@ -442,6 +442,7 @@ Vue.component('marquee-text', MarqueeText);
year: 'numeric',
hour: 'numeric',
minute: 'numeric',
second: 'numeric',
hourCycle: this.config.dtHour12 ? 'h12' : 'h23'
})
.replace(' AM', ' am')
Expand Down

0 comments on commit 49742f1

Please sign in to comment.