Clarification of the code
Tested on Desktop
Tested on Mobile
By simply removing 'settings' key from the indexedDB 'keyval' ObjectStore. As requested in #101
Moved the `storage.delete` statement to the main-controller so the settingsUI can be updated easily. The main-controller is informed about a reset by the `'reset-config'` event from the mainMenuUI component.
This allows for backwards compatability (and other wierd cases where the default configuration is missing). People who used the app before this change will not have a `default-config` entry in their indexedDB, courtesy of main-controller.js:224-233
When no default configuration was found, create a new toast using the toastUI rather then using the standard `alert()`. The toast also allows for easy implementation of a reload option in the notification.
I think the best way to do this is via a toast (https://github.com/jakearchibald/svgomg/blob/master/src/js/page/main-controller.js#L158) which says "Options reset" but has "Undo" & "Dismiss" buttons. I'll take a look at that.
I've already used a toast, so I'm comfortable adding it for you