Closed aadcg closed 1 year ago
I'm a bit confused about this. @jmercouris, any idea?
Let me take a look and see what is happening.
So what that error means is that somehow your object is not defined, perhaps it is getting garbage collected or something. The function produces logical code "ID344.addBrowserView(ID343)"
So if we look here, we shall see:
ELECTRON> (remote-symbol view)
"ID343"
ELECTRON> (remote-symbol win)
"ID344"
ELECTRON> (format nil "~a.addBrowserView(~a)"
(remote-symbol win)
(remote-symbol view))
"ID344.addBrowserView(ID343)"
ELECTRON> (add-browser-view win view)
"ReferenceError: ID343 is not defined"
NIL
ELECTRON> (get-bounds win)
"[object Object]"
NIL
ELECTRON> (focus win)
"undefined"
NIL
clearly our window is functional, but our view is not!
Will investigate view creation.
Aha!
(send-message win "new BrowserView()")
"ReferenceError: BrowserView is not defined"
NIL
Fixed with: e8ba297
please let me know if you have any more problems!
Thanks!
It's working well. On the left, a single Electron window with 2 views.
Nice!!!! Looks so cool!
Following a simple example from the Electron docs:
Using either
setBrowserView
oraddBrowserView
results in the same error.