chore: remove log statements

This commit is contained in:
Haoyu Xu
2024-12-20 12:47:12 +08:00
parent 8b1e3d465d
commit 43d0b02393

View File

@@ -78,21 +78,16 @@ export default class Settings {
} }
insight(isWallpaperEngine, doNotTrack) { insight(isWallpaperEngine, doNotTrack) {
console.log(1)
this.isWallpaperEngine = isWallpaperEngine this.isWallpaperEngine = isWallpaperEngine
if (this.#isInsightInited || import.meta.env.MODE === 'development') return if (this.#isInsightInited || import.meta.env.MODE === 'development') return
console.log(2)
this.#isInsightInited = true this.#isInsightInited = true
this.#doNotTrack = doNotTrack this.#doNotTrack = doNotTrack
if (this.#doNotTrack) return if (this.#doNotTrack) return
console.log(3)
try { try {
window.counterscale = { window.counterscale = {
q: [["set", "siteId", `aklive2d-${import.meta.env.VITE_LINK}`], ["trackPageview"]], q: [["set", "siteId", `aklive2d-${import.meta.env.VITE_LINK}`], ["trackPageview"]],
}; };
console.log(4)
window.counterscaleOnDemandTrack(); window.counterscaleOnDemandTrack();
console.log(5)
} catch(e) { } catch(e) {
console.warn && console.warn(e.message) console.warn && console.warn(e.message)
} }