"Performant Logging" feature in Advanced

This commit is contained in:
maikirakiwi 2022-06-21 17:01:25 -07:00
parent 979a36c79a
commit 0ca0b34ff0
3 changed files with 24 additions and 1 deletions

View file

@ -17,6 +17,17 @@ window.CiderCache = CiderCache
window.CiderFrontAPI = CiderFrontAPI
window.wsapi = wsapi
if (app.cfg.advanced.disableLogging === true) {
window.console = {
log: function() {},
error: function() {},
warn: function() {},
assert: function() {},
debug: function() {}
}
}
// Mount Vue to #app
app.$mount("#app")