mirror of
https://github.com/gosticks/vscode-vibrancy-continued.git
synced 2025-10-16 12:05:38 +00:00
Fix incorrect paths on Windows
fixes crashing on startup
This commit is contained in:
parent
43cc2615f5
commit
0b7db7274c
@ -79,7 +79,7 @@ electron.app.on('browser-window-created', (_, window) => {
|
||||
const backgroundRGB = hexToRgb(app.theme.background) || { r: 0, g: 0, b: 0 };
|
||||
|
||||
if (app.os === 'win10') {
|
||||
const bindings = require('../vibrancy.js');
|
||||
const bindings = require('./vibrancy.js');
|
||||
bindings.setVibrancy(
|
||||
window.getNativeWindowHandle().readInt32LE(0),
|
||||
1,
|
||||
@ -88,7 +88,7 @@ electron.app.on('browser-window-created', (_, window) => {
|
||||
backgroundRGB.b,
|
||||
0
|
||||
);
|
||||
const win10refresh = require('../win10refresh.js');
|
||||
const win10refresh = require('./win10refresh.js');
|
||||
win10refresh(window, 60);
|
||||
|
||||
window.webContents.once('dom-ready', () => {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user