From ebc14f9df31c2e640611ba37139c233e1792ce76 Mon Sep 17 00:00:00 2001 From: Victor Savinov Date: Sun, 9 Jan 2022 14:01:56 +0300 Subject: [PATCH] Fixed styles --- extension-features.js | 8 ++++---- manifest.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/extension-features.js b/extension-features.js index eab6e0a..424f6b3 100644 --- a/extension-features.js +++ b/extension-features.js @@ -296,17 +296,17 @@ document.addEventListener('ui-styles', function () { if (storage.background_color) { if (storage.hasOwnProperty('opacity')) { - this.surface.style.setProperty('background-color', 'rgba(' + storage.background_color.join(',') + ',' + storage.opacity + ')', 'important'); + extension.ui.surface.style.setProperty('background-color', 'rgba(' + storage.background_color.join(',') + ',' + storage.opacity + ')', 'important'); } else { - this.surface.style.setProperty('background-color', 'rgba(' + storage.background_color.join(',') + ',0.8)', 'important'); + extension.ui.surface.style.setProperty('background-color', 'rgba(' + storage.background_color.join(',') + ',0.8)', 'important'); } } if (storage.text_color) { - this.surface.style.setProperty('color', 'rgb(' + storage.text_color.join(',') + ')', 'important'); + extension.ui.surface.style.setProperty('color', 'rgb(' + storage.text_color.join(',') + ')', 'important'); } if (storage.blur) { - this.surface.style.setProperty('backdrop-filter', 'blur(' + storage.blur + 'px)', 'important'); + extension.ui.surface.style.setProperty('backdrop-filter', 'blur(' + storage.blur + 'px)', 'important'); } }); \ No newline at end of file diff --git a/manifest.json b/manifest.json index 662e74f..d4a0064 100644 --- a/manifest.json +++ b/manifest.json @@ -2,7 +2,7 @@ "manifest_version": 3, "name": "Frame By Frame", "description": "__MSG_description__", - "version": "3.1", + "version": "3.2", "default_locale": "en", "icons": { "16": "icons/16.png",