From 55bdea11bb2281ccd9aa027a9aded8f079b07679 Mon Sep 17 00:00:00 2001 From: yutent Date: Mon, 29 Aug 2022 00:43:21 +0800 Subject: [PATCH] update --- package.json | 4 ---- src/js/app.js | 4 ++-- src/tools/windows.js | 4 ++-- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index fc65213..4a93a66 100644 --- a/package.json +++ b/package.json @@ -19,10 +19,6 @@ "music-metadata": "^7.5.0", "sqlite3": "^5.0.0" }, - "devDependencies": { - "electron": "^10.0.0", - "electron-builder": "^22.1.0" - }, "build": { "appId": "top.yutent.sonist", "productName": "Sonist", diff --git a/src/js/app.js b/src/js/app.js index 7d6591a..7bebf97 100644 --- a/src/js/app.js +++ b/src/js/app.js @@ -8,13 +8,13 @@ import Anot from '/js/lib/anot.js' import '/js/lib/scroll/index.js' import Keyboard from '/js/lib/keyboard/index.js' -import app from '/js/lib/socket.js' +// import app from '/js/lib/socket.js' import fetch from '/js/lib/fetch/index.js' import Api from '/js/api.js' import Player from '/js/lib/audio/index.js' -const id3 = require('music-metadata') +// const id3 = require('music-metadata') const MODE_DICT = { 1: 'all', 2: 'single', 3: 'random' } diff --git a/src/tools/windows.js b/src/tools/windows.js index 1d91495..e9e4bee 100644 --- a/src/tools/windows.js +++ b/src/tools/windows.js @@ -23,13 +23,13 @@ exports.createMainWindow = function(icon) { resizable: false, maximizable: false, icon, - transparent: true, + // transparent: true, vibrancy: 'dark', visualEffectState: 'active', webPreferences: { webSecurity: false, experimentalFeatures: true, - nodeIntegration: true + preload: '../js/lib/socket.js' }, show: false })