Fix to make it operational again

This commit is contained in:
Core 2022-01-15 14:43:33 +00:00
parent bc56aee137
commit b0118dff5b
No known key found for this signature in database
GPG key ID: 1B77805746C47C28
2 changed files with 17 additions and 8 deletions

View file

@ -15,6 +15,13 @@ export class ConfigStore {
"followedArtists": [],
"favoriteItems": []
},
"libraryPrefs": {
"songs": {
"sort": "name",
"sortOrder": "asc",
"size": "normal"
}
},
"audio": {
"volume": 1,
"quality": "990",
@ -48,8 +55,7 @@ export class ConfigStore {
"animated_artwork": "limited", // 0 = always, 1 = limited, 2 = never
"animated_artwork_qualityLevel": 1,
"bg_artwork_rotation": false,
"hw_acceleration": "default", // default, webgpu, disabled
"window_transparency": "disabled"
"hw_acceleration": "default" // default, webgpu, disabled
},
"lyrics": {
"enable_mxm": false,
@ -66,6 +72,7 @@ export class ConfigStore {
},
"advanced": {
"AudioContext": false,
"experiments": []
}
}
private migrations: any = {}

View file

@ -1,6 +1,5 @@
import * as path from "path";
import * as electron from "electron";
// import * as electronAcrylic from "electron-acrylic-window"
import * as windowStateKeeper from "electron-window-state";
import * as express from "express";
import * as getPort from "get-port";
@ -50,7 +49,14 @@ export class Win {
webPreferences: {
nodeIntegration: true,
sandbox: true,
allowRunningInsecureContent: true,
contextIsolation: false,
webviewTag: true,
plugins: true,
nodeIntegrationInWorker: false,
webSecurity: false,
preload: path.join(this.paths.srcPath, './preload/cider-preload.js')
}
};
@ -73,11 +79,7 @@ export class Win {
// Start the webserver for the browser window to load
this.startWebServer()
if (process.platform === "win32") {
// this.win = new electronAcrylic.BrowserWindow(this.options);
} else {
this.win = new electron.BrowserWindow(this.options);
}
this.win = new electron.BrowserWindow(this.options);
// and load the renderer.
this.startSession();