tamkeen-tms / electron-window-manager

A NodeJs module that handles window management for Electron (Atom Shell, previously).
MIT License
397 stars 65 forks source link

Uncaught Error: Could not call remote function 'createNew' #55

Open hevilp opened 6 years ago

hevilp commented 6 years ago

``

Uncaught Error: Could not call remote function 'createNew'. Check that the function signature is correct. Underlying error: Cannot read property 'focus' of null Error: Could not call remote function 'createNew'. Check that the function signature is correct. Underlying error: Cannot read property 'focus' of null at callFunction ....

hevilp commented 6 years ago

I saw now:

https://github.com/TamkeenLMS/electron-window-manager/issues/9

a-sync commented 6 years ago

@hevilp Just to be clear: did you also had to specify all the arguments to make this work? var win2 = windowManager.createNew('win1', 'Windows 1', null, false, {}, false); Like so?

Also: you should use .setURL() instead of .loadURL() before using .open().

hevilp commented 6 years ago

Yes I specified all arguments.

Cabeccar commented 5 years ago

Delete win2.onReady(); and it will work, I had the same problem

MarcKarasek commented 4 years ago

How do you use onReady() properly.. I had same problem and deleted it but will need to use it as some point.