mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-18 06:07:48 +00:00
为 Windows 平台添加沉浸式标题栏 (#277)
This commit is contained in:
parent
c0c4597cd8
commit
51fc57efe8
7 changed files with 147 additions and 2 deletions
|
|
@ -2,6 +2,10 @@ export function ipcRenderer(vueInstance) {
|
|||
const self = vueInstance;
|
||||
// 添加专有的类名
|
||||
document.body.setAttribute("data-electron", "yes");
|
||||
document.body.setAttribute(
|
||||
"data-electron-platform-win32",
|
||||
window.require("os").platform() == "win32" ? "yes" : "no"
|
||||
);
|
||||
// ipc message channel
|
||||
const electron = window.require("electron");
|
||||
const ipcRenderer = electron.ipcRenderer;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue