1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-06-12 08:14:08 +02:00

fix(frontend): 本番環境で不必要なconsole.logを出さないように (#15702)

This commit is contained in:
かっこかり
2025-03-25 08:02:06 +09:00
committed by GitHub
parent 3f7a2bf5b5
commit 5513337198
5 changed files with 9 additions and 9 deletions

View File

@@ -142,11 +142,11 @@ export class PreferencesManager {
const v = JSON.parse(JSON.stringify(value)); // deep copy 兼 vueのプロキシ解除
if (deepEqual(this.s[key], v)) {
console.log('(skip) prefer:commit', key, v);
if (_DEV_) console.log('(skip) prefer:commit', key, v);
return;
}
console.log('prefer:commit', key, v);
if (_DEV_) console.log('prefer:commit', key, v);
this.rewriteRawState(key, v);
@@ -250,13 +250,13 @@ export class PreferencesManager {
if (!deepEqual(cloudValue, record[1])) {
this.rewriteRawState(key, cloudValue);
record[1] = cloudValue;
console.log('cloud fetched', key, cloudValue);
if (_DEV_) console.log('cloud fetched', key, cloudValue);
}
}
}
this.save();
console.log('cloud fetch completed');
if (_DEV_) console.log('cloud fetch completed');
}
public static newProfile(): PreferencesProfile {