diff --git a/src/main/base/store.ts b/src/main/base/store.ts index 88ead0b7..766fddb0 100644 --- a/src/main/base/store.ts +++ b/src/main/base/store.ts @@ -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 = {} diff --git a/src/main/base/win.ts b/src/main/base/win.ts index ff49c3fe..b0de8a35 100644 --- a/src/main/base/win.ts +++ b/src/main/base/win.ts @@ -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();