Last active
February 26, 2021 02:30
-
-
Save leohxj/60c9c0f4d1198d6646b1a8bed0632b8c to your computer and use it in GitHub Desktop.
Electron 管理 BrowserView
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// xx | |
const view = new BrowserView() | |
win.setBrowserView(view) | |
view.setBounds({ x: 0, y: 0, width: 300, height: 300 }) | |
view.webContents.loadURL('https://electronjs.org') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment