fuck acrylic

This commit is contained in:
Saboor 2022-01-11 20:28:56 -07:00
parent 430df8ff41
commit e866e7fbf1
2 changed files with 1 additions and 14 deletions

View file

@ -24,7 +24,6 @@
"@sentry/electron": "^2.5.4",
"discord-rpc": "^4.0.1",
"ejs": "^3.1.6",
"electron-acrylic-window": "^0.5.11",
"electron-fetch": "^1.7.4",
"electron-log": "^4.4.3",
"electron-store": "^8.0.1",

View file

@ -70,19 +70,7 @@ const CiderBase = {
CiderBase.InitWebServer()
// Create the BrowserWindow
if (process.platform === "darwin" || process.platform === "linux") {
win = new BrowserWindow(options)
} else {
if (app.cfg.get("visual.window_transparency") !== "disabled") {
const { BrowserWindow } = require("electron-acrylic-window");
win = new BrowserWindow(options)
win.setVibrancy("#59202700") // when out of focus, fills with #592027, 00 is aplha values
}
else{
win = new BrowserWindow(options)
}
}
win = new BrowserWindow(options)
// intercept "https://js-cdn.music.apple.com/hls.js/2.141.0/hls.js/hls.js" and redirect to local file "./apple-hls.js" instead
win.webContents.session.webRequest.onBeforeRequest({