Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc-browser.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--keepassxc-browser/content/ui.js10
-rwxr-xr-xkeepassxc-browser/manifest.json1
2 files changed, 10 insertions, 1 deletions
diff --git a/keepassxc-browser/content/ui.js b/keepassxc-browser/content/ui.js
index 1a2a162..5f8b732 100644
--- a/keepassxc-browser/content/ui.js
+++ b/keepassxc-browser/content/ui.js
@@ -230,6 +230,10 @@ kpxcUI.createNotification = function(type, message) {
const styleSheet = createStylesheet('css/notification.css');
notificationWrapper = notificationWrapper || document.createElement('div');
this.shadowRoot = notificationWrapper.attachShadow({ mode: 'closed' });
+ if (!this.shadowRoot) {
+ return;
+ }
+
this.shadowRoot.append(styleSheet);
this.shadowRoot.append(notification);
document.body.append(notificationWrapper);
@@ -325,7 +329,11 @@ Element.prototype.getLowerCaseAttribute = function(attr) {
Element.prototype._attachShadow = Element.prototype.attachShadow;
Element.prototype.attachShadow = function () {
- return this._attachShadow({ mode: 'closed' });
+ try {
+ return this._attachShadow({ mode: 'closed' });
+ } catch (e) {
+ console.log('Error: ', e);
+ }
};
Object.prototype.shadowSelector = function(value) {
diff --git a/keepassxc-browser/manifest.json b/keepassxc-browser/manifest.json
index 2d156f7..461350e 100755
--- a/keepassxc-browser/manifest.json
+++ b/keepassxc-browser/manifest.json
@@ -127,6 +127,7 @@
"css/button.css",
"css/colors.css",
"css/define.css",
+ "css/notification.css",
"css/pwgen.css",
"css/username.css",
"css/totp.css"