From fc9c6128408d0e1588b0e80715595025d469b3db Mon Sep 17 00:00:00 2001 From: Stefan Sundin Date: Sun, 7 Nov 2021 13:37:06 -0800 Subject: [PATCH] Load the colorTheme earlier to prevent a white flash when the Settings page is opened. This requires storing the theme somewhere where we can load it immediately before the first render (I picked localStorage for simplicity). --- keepassxc-browser/manifest.json | 1 + keepassxc-browser/options/options.html | 7 +++++++ keepassxc-browser/options/options.js | 7 +++++++ 3 files changed, 15 insertions(+) diff --git a/keepassxc-browser/manifest.json b/keepassxc-browser/manifest.json index d725820..6f0ea64 100755 --- a/keepassxc-browser/manifest.json +++ b/keepassxc-browser/manifest.json @@ -146,6 +146,7 @@ "http://*/*", "https://api.github.com/" ], + "content_security_policy": "script-src 'self' 'sha256-UD5WN2QEhRDEZ6vkLdHKFlkHwzbemzW2ppJiOLooI8o='; object-src 'none'", "applications": { "gecko": { "id": "keepassxc-browser@keepassxc.org", diff --git a/keepassxc-browser/options/options.html b/keepassxc-browser/options/options.html index bbee559..4dbc7cf 100644 --- a/keepassxc-browser/options/options.html +++ b/keepassxc-browser/options/options.html @@ -20,6 +20,13 @@ +