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:
@@ -3,12 +3,14 @@ import App from './components/App.svelte'
|
||||
import * as stores from './stores'
|
||||
import * as services from './services'
|
||||
import serviceWorkerBoot from './sw-boot'
|
||||
import loggerBoot from './logger-boot'
|
||||
|
||||
const boot = () => {
|
||||
|
||||
services.storageListener.register()
|
||||
|
||||
serviceWorkerBoot()
|
||||
loggerBoot()
|
||||
|
||||
new App({
|
||||
target: document.querySelector('#root'),
|
||||
|
8
lib/frontend/logger-boot.js
Normal file
8
lib/frontend/logger-boot.js
Normal file
@@ -0,0 +1,8 @@
|
||||
import logger from '../static/app/logger'
|
||||
import { configStore } from './stores'
|
||||
|
||||
export default () => {
|
||||
const enableTracking = configStore.track
|
||||
|
||||
logger.setRemoteLogging(enableTracking)
|
||||
}
|
Reference in New Issue
Block a user