* fix: Fix eslint warning when using `window as any`
* fix: FIx some eslint errors
Closes#1359
* fix: Add some mora extra types
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
* [GH-314] Export native app user settings on change
This switches from exporting the native app user settings on window close to exporting
on settings change. This way the settings export remains independent of native application
life-cycle events.
This is a stop-gap towards enabling settings export on the native Linux app. The latter
does not have an easy way to catch window close events.
Relates to: #314
* Disable no-shadow rule to prevent false-positive
* Verify allowed localStorage keys
* Fix import order/spacing
* Treat JSON parsing errors as failed import
* Read known keys from the correct type 🤦
* Extend logging with imported keys and always include _current_ user settings
* Fixing eslint
Co-authored-by: Hossein <hahmadia@users.noreply.github.com>
Co-authored-by: Jesús Espino <jespinog@gmail.com>
* [GH-314] Persist and reapply users settings in mac app
Relates to: #314
* Inject settings blob at document start, push base64 conversion into TS, use proper quotes
* Remove whitespace
* Rename base64 to blob for consistency