From 331b3492db7b8c561508b1b290c2b5ced55194e3 Mon Sep 17 00:00:00 2001 From: Haoyu Xu Date: Sat, 11 Feb 2023 14:33:52 -0500 Subject: [PATCH] fix(showcase): fixed an issue where doNotTrack did not apply --- Version | 2 +- src/components/settings.js | 2 +- src/components/voice.js | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Version b/Version index fa7adc7..9c25013 100644 --- a/Version +++ b/Version @@ -1 +1 @@ -3.3.5 +3.3.6 diff --git a/src/components/settings.js b/src/components/settings.js index f2c822b..7ca1362 100644 --- a/src/components/settings.js +++ b/src/components/settings.js @@ -73,8 +73,8 @@ export default class Settings { insights(isWallpaperEngine, doNotTrack) { if (this.#isInsightsInited || import.meta.env.MODE === 'development') return this.#isInsightsInited = true - if (doNotTrack || this.#doNotTrack) return this.#doNotTrack = doNotTrack + if (this.#doNotTrack) return window.umami?.trackView(`/${import.meta.env.VITE_LINK}${isWallpaperEngine ? "?steam" : ""}`); } diff --git a/src/components/voice.js b/src/components/voice.js index 1d724c9..6507b6c 100644 --- a/src/components/voice.js +++ b/src/components/voice.js @@ -6,12 +6,12 @@ export default class Voice { #widgetEl #audioEl = new Audio() #audioElId = 'voice-audio' - #defaultVoiceLang = "CN_MANDARIN" #defaultRegion = charword_table.config.default_region #defaultIdleDuration = 10 * 60 * 1000 #defaultNextDuration = 3 * 60 * 1000 - #voiceLang = this.#defaultVoiceLang #voiceLanguages = Object.keys(this.#getCVInfo(this.#defaultRegion)) + #defaultVoiceLang = this.#voiceLanguages[0] + #voiceLang = this.#defaultVoiceLang #subtitleLang = this.#defaultRegion #useSubtitle = true #useVoice = false