-
Notifications
You must be signed in to change notification settings - Fork 67
Exposing Dialog #64
Comments
That could be one way to do it. Are dialogs working properly? |
Yes I am able to access the dialog inside of my vue app and it works properly. I also have the EnabledRemoteModule flagged as true from here asticode/go-astilectron#314 (comment) Adding But index.js was created by the bundler, so this code change will be overwritten every time I build. |
I was able to achieve this without needing to edit the index.js file using the custom.script in main.go, in the astilectron.WindowOptions
|
I love this idea! Did you really need the |
You are right, I didn't need that part and now I have access to dialog in my vue components. eslint doesn't like it but the vue app compiles and the dialogs work properly. |
Thanks a lot for sharing! ❤️ |
Thank you for the guidance! |
I have edited my vendor/astilectron/index.js code to expose the dialog via the astilectron object.
Starting on line 536
This made it so I could extend vue/src/plugins/astor.js and further expose the dialog to the rest of my app.
Is this a good way to get access to the dialog object?
The text was updated successfully, but these errors were encountered: