diff --git a/ext/webextension/src/browser_action/main_popup.js b/ext/webextension/src/browser_action/main_popup.js index 935ef02..653b345 100644 --- a/ext/webextension/src/browser_action/main_popup.js +++ b/ext/webextension/src/browser_action/main_popup.js @@ -302,7 +302,16 @@ function popup(masterkey) { } window.addEventListener('load', function () { - config.get(['username', 'key_id', 'defaulttype', 'pass_to_clipboard', 'pass_store', 'passwdtimeout', 'use_sync', 'defaultname']) + config.get([ + 'username', + 'key_id', + 'defaulttype', + 'pass_to_clipboard', + 'pass_store', + 'passwdtimeout', + 'use_sync', + 'defaultname', + ]) .then(v=>{ return runtimeSendMessage({action: 'masterkey_get', use_pass_store: !!v.pass_store}); }) diff --git a/ext/webextension/src/css/mpwd.css b/ext/webextension/src/css/mpwd.css index 291fed9..29a0c53 100644 --- a/ext/webextension/src/css/mpwd.css +++ b/ext/webextension/src/css/mpwd.css @@ -87,7 +87,10 @@ button:focus, input:focus, mp-combobox:focus-within { outline-style: auto; } -input, select, mp-combobox { +input, +select, +mp-combobox, +no-op { background: #1b1d23; color: #d7dae0; height: 2em; @@ -198,7 +201,8 @@ button#siteconfig_show { } #siteconfig > input, #siteconfig > select, -#siteconfig > option { +#siteconfig > option, +no-op { font-size: 1em; font-weight: normal; width: 6em; @@ -302,7 +306,8 @@ button#siteconfig_show { .configitem > input, .configitem > select, -.configitem > option { +.configitem > option, +no-op { margin-top:1.5em; margin-left:-8em; font-size: 1em; diff --git a/ext/webextension/src/options/globaloptions.js b/ext/webextension/src/options/globaloptions.js index 1ad9dfd..7ae479f 100644 --- a/ext/webextension/src/options/globaloptions.js +++ b/ext/webextension/src/options/globaloptions.js @@ -150,14 +150,16 @@ document.querySelector('#use_sync').addEventListener('change', async function() }); window.addEventListener('load', function() { - config.get(['defaulttype', - 'defaultname', - 'passwdtimeout', - 'pass_to_clipboard', - 'auto_submit_pass', - 'auto_submit_username', - 'pass_store', - 'use_sync']) + config.get([ + 'defaulttype', + 'defaultname', + 'passwdtimeout', + 'pass_to_clipboard', + 'auto_submit_pass', + 'auto_submit_username', + 'pass_store', + 'use_sync', + ]) .then(data => { data = Object.assign({defaulttype: 'l', passwdtimeout: 0, pass_to_clipboard: true, defaultname: '', diff --git a/ext/webextension/src/options/index.html b/ext/webextension/src/options/index.html index 78985e4..ff4ed19 100644 --- a/ext/webextension/src/options/index.html +++ b/ext/webextension/src/options/index.html @@ -34,59 +34,59 @@