mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-16 21:28:06 +00:00
fix(electron): login issue
This commit is contained in:
parent
fed756f6bd
commit
2998e52427
1 changed files with 6 additions and 2 deletions
|
|
@ -9,6 +9,7 @@ import { createTouchBar } from "./electron/touchBar";
|
|||
import { createDockMenu } from "./electron/dockMenu";
|
||||
import { createTray } from "./electron/tray.js";
|
||||
import { autoUpdater } from "electron-updater";
|
||||
import express from "express";
|
||||
|
||||
const isDevelopment = process.env.NODE_ENV !== "production";
|
||||
|
||||
|
|
@ -49,8 +50,11 @@ function createWindow() {
|
|||
if (!process.env.IS_TEST) win.webContents.openDevTools();
|
||||
} else {
|
||||
createProtocol("app");
|
||||
// Load the index.html when not in development
|
||||
win.loadURL("app://./index.html");
|
||||
// win.loadURL("app://./index.html");
|
||||
const expressApp = express();
|
||||
expressApp.use("/", express.static(__dirname + "/"));
|
||||
expressApp.listen(27232);
|
||||
win.loadURL("http://localhost:27232");
|
||||
}
|
||||
|
||||
win.webContents.on("new-window", function (e, url) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue