Comments (2)
webview.setWindowOpenHandler()
doesn't exist in electron API: https://www.electronjs.org/docs/latest/api/webview-tag
What you are looking for is webContents.setWindowOpenHandler()
: https://www.electronjs.org/docs/latest/api/web-contents#contentssetwindowopenhandlerhandler
The webContents you need is the one related to the webview, not the window's one. Electron used to provide a method webview.getWebContents()
but it's now deprecated, so you will have to write your own function to get it: https://www.electronjs.org/docs/latest/breaking-changes#deprecated-webviewgetwebcontents
from electron-tabs.
Thank you!
from electron-tabs.
Related Issues (20)
- height of tab-group never be changed. HOT 1
- how do Drag up and down to create a new window?like google Browser HOT 1
- Easier way to set the view height
- Chrome Style Tabs HOT 1
- Allow user to rename tabs HOT 2
- How to remove the system default title bar, and the effect is similar to Chrome? HOT 2
- [feature]Could drag tab into another open window? HOT 2
- electron-tabs will not load local (file://) URL no matter what content it is HOT 13
- How can I use it in vue3? HOT 1
- locate elements in webview HOT 1
- setWindowOpenHandler not firing on the main process HOT 1
- How to refresh current tab content on click of menu HOT 3
- about addTab title HOT 1
- How to open link inside the tab content? HOT 2
- Using BrowserView instead of webView HOT 1
- Not loading js file HOT 3
- getNextTab / getPreviousTab HOT 1
- Is it possible to disable background throttling on tabs? HOT 1
- How to set the css style of the background of the tab bar? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from electron-tabs.