-
Notifications
You must be signed in to change notification settings - Fork 344
how to use dialog? #314
Comments
It seems like I won't have time to work on this change anytime soon, so if somebody feels like contributing, I'm welcoming PRs. |
Fixing this problem should be as easy as adding This is caused by a breaking change from electron. By the way: I did test this but since I don't know how you handle external libraries I didn't create a pull request. I hope this makes it easier to implement a fix for this problem though. For future references: |
vendor/astilectron/index.js
yourcode.js
|
Hi, i'm using
Is there currently a possibility to use dialog? |
Hi @ThePutzy
and in the JS I have |
@thomas-lud I tried with these versions declared in |
I think i have a fix for the current versions
as describe here https://stackoverflow.com/a/37893140/8571243 one must set w, err = a.NewWindow("dist/index.html", &astilectron.WindowOptions{
//......
Width: astikit.IntPtr(1500),
Height: astikit.IntPtr(800),
WebPreferences: &astilectron.WebPreferences{EnableRemoteModule: astikit.BoolPtr(true)},
})
``` and now this works for me |
I see a lot of issues solved with Dialog,
But when I try
const {dialog} = require('electron').remote;
in main.js ,It will prompt me
TypeError: fs.existsSync is not a function
,Where is the correct quote.
Thanks.
The text was updated successfully, but these errors were encountered: