Could not call remote function 'BrowserWindow'
leonliang33 opened this issue · 2 comments
leonliang33 commented
Hey I'm trying to test run the PDFWindow from the electron console
win = new PDFWindow() win.loadURL('http://www.aclweb.org/anthology/P/P02/P02-1022.pdf')
but this the error message I'm getting:
remote.js:217 Uncaught Error: Could not call remote function 'BrowserWindow'. Check that the function signature is correct. Underlying error: Requires constructor call(…)
metaToValue @ remote.js:217
remoteFunction @ remote.js:234
PDFWindow @ index.js:57
(anonymous function) @ VM415:1
leonliang33 commented
I think this is because BrowserWindow is no longer extendable see: electron/electron#23
gerhardberger commented
yeah, you need to use the addSupport
method not PDFWindow
directly.
Duplicate of #2.