feat(release): 3.3.5 with support of operator voice

This commit is contained in:
Haoyu Xu
2023-02-11 13:31:41 -05:00
parent c7585f93a6
commit 343275beb9
4 changed files with 29 additions and 4 deletions

View File

@@ -71,8 +71,9 @@ export default class Settings {
}
insights(isWallpaperEngine, doNotTrack) {
if (this.#isInsightsInited || import.meta.env.MODE === 'development') return
this.#isInsightsInited = true
if (this.#isInsightsInited || doNotTrack || import.meta.env.MODE === 'development') return
if (doNotTrack || this.#doNotTrack) return
this.#doNotTrack = doNotTrack
window.umami?.trackView(`/${import.meta.env.VITE_LINK}${isWallpaperEngine ? "?steam" : ""}`);
}

View File

@@ -5,7 +5,9 @@ window.wallpaperPropertyListener = {
}
},
applyUserProperties: function (properties) {
window.settings.insights(true, false)
if (properties.privacydonottrack) {
window.settings.insights(true, !properties.privacydonottrack.value)
}
if (properties.logo) {
window.settings.setLogoDisplay(!properties.logo.value)
}