You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the BrowserWindow was created, the previously created BrowserWindow was reused using the formId, which generated a new EventEmitter, but the new EventEmitter did not call setDelegates, resulting in the postMessage of the webview was actually processed by the previously created EventEmitter and not sent to The new EventEmitter, which eventually caused the message to be lost.
functionBrowserWindow(options){options=options||{}varidentifier=options.identifier||String(NSUUID.UUID().UUIDString())varthreadDictionary=NSThread.mainThread().threadDictionary()varexistingBrowserWindow=BrowserWindow.fromId(identifier)// if we already have a window opened, reuse itif(existingBrowserWindow){returnexistingBrowserWindow}//...buildBrowserAPI(browserWindow,panel,webView)buildWebAPI(browserWindow,panel,webView)// setDelegates is called heresetDelegates(browserWindow,panel,webView,options)}BrowserWindow.fromId=function(identifier){varthreadDictionary=NSThread.mainThread().threadDictionary()if(threadDictionary[identifier]){returnBrowserWindow.fromPanel(threadDictionary[identifier],identifier)}returnundefined}BrowserWindow.fromPanel=function(panel,identifier){// A new EventEmitter is created hervarbrowserWindow=newEventEmitter()browserWindow.id=identifierif(!panel||!panel.contentView){thrownewError('needs to pass an NSPanel')}// ...// But setDelegates is not called herebuildBrowserAPI(browserWindow,panel,webView)buildWebAPI(browserWindow,panel,webView)returnbrowserWindow}
The text was updated successfully, but these errors were encountered:
When the BrowserWindow was created, the previously created BrowserWindow was reused using the formId, which generated a new EventEmitter, but the new EventEmitter did not call setDelegates, resulting in the postMessage of the webview was actually processed by the previously created EventEmitter and not sent to The new EventEmitter, which eventually caused the message to be lost.
The text was updated successfully, but these errors were encountered: