3 ms·
https://caniuse.com/#search=dialog https://caniuse.com/#search=dialog ? NO! <script> confirm("No dialog needed") </script>
by singularity2001 8y ago
https://caniuse.com/#search=dialog https://caniuse.com/#search=dialog ? NO!
<script>
confirm("No dialog needed")
</script>
- dchest 8y agoNice table, which shows that you are free to use <dialog> and many other modern features to write your Electron app: Electron v2.0.2 Chromium v61.0.3163.100 Node v8.9.3v8 v6.1.534.41
- singularity2001 8y agoElectron… fair point! Except we were comparing new web GUIs. On the flip side Electron explicitly does not impliment confirm() and prompt() which made me furious. So there is definitely truth in the general js=cluster-fuck sentiment.
- hajile 8y ago`confirm()`, `alert()`, `prompt()` and similar are widely regarded as mistakes. Including them on your new Electron app isn't something you should be doing in the first place.
- dchest 8y agoIndeed: https://developers.google.com/web/updates/2017/03/dialogs-policy https://developers.google.com/web/updates/2017/03/dialogs-po... Electron has native dialog APIs: https://electronjs.org/docs/api/dialog https://electronjs.org/docs/api/dialog