1
0
mirror of https://github.com/comatory/fb2iCal synced 2025-06-05 22:09:25 +02:00

fix: set up logger from Svelte app on app boot

This commit is contained in:
Ondřej Synáček
2020-12-20 15:06:08 +01:00
parent 29ad7fcf73
commit 377a4bcd80
3 changed files with 10 additions and 15 deletions

View File

@@ -14,19 +14,4 @@ import { Request } from '../frontend/records'
(() => {
document.addEventListener('DOMContentLoaded', boot)
const configureLogger = (logger) => {
if (!logger) {
return
}
const prevStorage = getConfigStorage()
const storageContents = getStorageContents(prevStorage)
const shouldTrack = Boolean(storageContents.track)
logger.setRemoteLogging(shouldTrack)
}
configureLogger(logger)
})()