Fix to make it operational again
This commit is contained in:
parent
bc56aee137
commit
b0118dff5b
2 changed files with 17 additions and 8 deletions
|
@ -15,6 +15,13 @@ export class ConfigStore {
|
||||||
"followedArtists": [],
|
"followedArtists": [],
|
||||||
"favoriteItems": []
|
"favoriteItems": []
|
||||||
},
|
},
|
||||||
|
"libraryPrefs": {
|
||||||
|
"songs": {
|
||||||
|
"sort": "name",
|
||||||
|
"sortOrder": "asc",
|
||||||
|
"size": "normal"
|
||||||
|
}
|
||||||
|
},
|
||||||
"audio": {
|
"audio": {
|
||||||
"volume": 1,
|
"volume": 1,
|
||||||
"quality": "990",
|
"quality": "990",
|
||||||
|
@ -48,8 +55,7 @@ export class ConfigStore {
|
||||||
"animated_artwork": "limited", // 0 = always, 1 = limited, 2 = never
|
"animated_artwork": "limited", // 0 = always, 1 = limited, 2 = never
|
||||||
"animated_artwork_qualityLevel": 1,
|
"animated_artwork_qualityLevel": 1,
|
||||||
"bg_artwork_rotation": false,
|
"bg_artwork_rotation": false,
|
||||||
"hw_acceleration": "default", // default, webgpu, disabled
|
"hw_acceleration": "default" // default, webgpu, disabled
|
||||||
"window_transparency": "disabled"
|
|
||||||
},
|
},
|
||||||
"lyrics": {
|
"lyrics": {
|
||||||
"enable_mxm": false,
|
"enable_mxm": false,
|
||||||
|
@ -66,6 +72,7 @@ export class ConfigStore {
|
||||||
},
|
},
|
||||||
"advanced": {
|
"advanced": {
|
||||||
"AudioContext": false,
|
"AudioContext": false,
|
||||||
|
"experiments": []
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
private migrations: any = {}
|
private migrations: any = {}
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
import * as path from "path";
|
import * as path from "path";
|
||||||
import * as electron from "electron";
|
import * as electron from "electron";
|
||||||
// import * as electronAcrylic from "electron-acrylic-window"
|
|
||||||
import * as windowStateKeeper from "electron-window-state";
|
import * as windowStateKeeper from "electron-window-state";
|
||||||
import * as express from "express";
|
import * as express from "express";
|
||||||
import * as getPort from "get-port";
|
import * as getPort from "get-port";
|
||||||
|
@ -50,7 +49,14 @@ export class Win {
|
||||||
webPreferences: {
|
webPreferences: {
|
||||||
nodeIntegration: true,
|
nodeIntegration: true,
|
||||||
sandbox: true,
|
sandbox: true,
|
||||||
|
allowRunningInsecureContent: true,
|
||||||
contextIsolation: false,
|
contextIsolation: false,
|
||||||
|
|
||||||
|
webviewTag: true,
|
||||||
|
plugins: true,
|
||||||
|
nodeIntegrationInWorker: false,
|
||||||
|
webSecurity: false,
|
||||||
|
|
||||||
preload: path.join(this.paths.srcPath, './preload/cider-preload.js')
|
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
|
// Start the webserver for the browser window to load
|
||||||
this.startWebServer()
|
this.startWebServer()
|
||||||
|
|
||||||
if (process.platform === "win32") {
|
this.win = new electron.BrowserWindow(this.options);
|
||||||
// this.win = new electronAcrylic.BrowserWindow(this.options);
|
|
||||||
} else {
|
|
||||||
this.win = new electron.BrowserWindow(this.options);
|
|
||||||
}
|
|
||||||
|
|
||||||
// and load the renderer.
|
// and load the renderer.
|
||||||
this.startSession();
|
this.startSession();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue