Merge pull request #793 from keepassxreboot/fix/firefox_theme_switch

Fix theme switching with Firefox
This commit is contained in:
Sami Vänttinen 2020-02-29 14:41:45 +02:00 committed by GitHub
commit e9a86917f5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -83,9 +83,9 @@ options.initGeneralSettings = function() {
$('#tab-general-settings select#colorTheme').val(options.settings['colorTheme']);
}
$('#tab-general-settings select:first').change(function() {
$('#tab-general-settings select:first').change(async function() {
options.settings['colorTheme'] = $(this).val();
options.saveSettings();
await options.saveSettingsPromise();
location.reload();
});