the-via / app

GNU General Public License v3.0
816 stars 186 forks source link

Simplify window.showSaveFilePicker call #145

Closed AndSDev closed 1 year ago

AndSDev commented 1 year ago

Workaround for window.showSaveFilePicker call. Closes https://github.com/the-via/app/issues/144 Closes https://github.com/the-via/releases/issues/252

Fixed all calls to window.showSaveFilePicker in the same way, but tested only layout save. Tested on MacBook (arm, Chrome 111), Ubuntu 22.04 (intel, Chrome 111).

This is a workaround for the Chrome bug (any actions in JS should not crash the browser). Related chromium bug (or similar): https://bugs.chromium.org/p/chromium/issues/detail?id=1424361