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:
parent
dd813cd0ea
commit
6b16af4b7d
6 changed files with 112 additions and 120 deletions
|
@ -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({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue