1
0
Fork 0
mirror of https://gitlab.com/futo-org/fcast.git synced 2025-07-25 11:27:00 +00:00

Receivers: Moved Store module to common components

This commit is contained in:
Michael Hollister 2025-06-12 11:56:44 -05:00
parent dd813cd0ea
commit 6b16af4b7d
6 changed files with 112 additions and 120 deletions

View file

@ -9,6 +9,7 @@ import { ConnectionMonitor } from 'common/ConnectionMonitor';
import { Logger, LoggerType } from 'common/Logger';
import { fetchJSON } from 'common/UtilityBackend';
import { MediaCache } from 'common/MediaCache';
import { Store } from 'common/Store';
import { Updater } from './Updater';
import * as os from 'os';
import * as path from 'path';
@ -475,6 +476,11 @@ export class Main {
})
.parseSync();
// Using singleton classes for better compatibility running on webOS
const jsonPath = path.join(app.getPath('userData'), 'UserSettings.json');
new Store(jsonPath);
new Updater();
const isUpdating = Updater.isUpdating();
const fileLogType = isUpdating ? 'fileSync' : 'file';
Logger.initialize({