fix(showcase): fixed an issue where doNotTrack did not apply

This commit is contained in:
Haoyu Xu
2023-02-11 14:33:52 -05:00
parent 343275beb9
commit 331b3492db
3 changed files with 4 additions and 4 deletions

View File

@@ -1 +1 @@
3.3.5
3.3.6

View File

@@ -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" : ""}`);
}

View File

@@ -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