mirror of
https://gitee.com/energye/energy.git
synced 2024-12-02 11:47:37 +08:00
v2.4.2 VF Popup URL
This commit is contained in:
parent
f6c1c25c95
commit
72b29b471c
@ -137,7 +137,9 @@ func (m *ViewsFrameworkBrowserWindow) registerPopupEvent() {
|
||||
if !api.GoBool(BrowserWindow.Config.chromiumConfig.enableWindowPopup) {
|
||||
return true
|
||||
}
|
||||
var vfbw = NewViewsFrameworkBrowserWindow(BrowserWindow.Config.ChromiumConfig(), BrowserWindow.Config.WindowProperty, BrowserWindow.MainWindow().AsViewsFrameworkBrowserWindow().Component())
|
||||
wp := BrowserWindow.Config.WindowProperty
|
||||
wp.Url = beforePopupInfo.TargetUrl
|
||||
var vfbw = NewViewsFrameworkBrowserWindow(BrowserWindow.Config.ChromiumConfig(), wp, BrowserWindow.MainWindow().AsViewsFrameworkBrowserWindow().Component())
|
||||
var result = false
|
||||
if bwEvent.onBeforePopup != nil {
|
||||
result = bwEvent.onBeforePopup(sender, browser, frame, beforePopupInfo, vfbw, noJavascriptAccess)
|
||||
|
Loading…
Reference in New Issue
Block a user