📜  如何在电子 js 中始终保持子窗口位于顶部 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:00.136000             🧑  作者: Mango

代码示例1
const { remote } = require('electron');
stopScreenShareWin = new remote.BrowserWindow({ 
                    width: 400, 
                    height: 40, 
                    show:true, 
                    alwaysOnTop:true, 
                    frame: false,
                    titleBarStyle: 'hidden',
                    visibleOnAllWorkspaces:true , 
                    webPreferences: {
                        nodeIntegration: true
                    }
                });
    stopScreenShareWin.loadFile('calls/screenshare-overlay.html');