diff --git a/LICENSE b/LICENSE index 14e2f777..a612ad98 100644 --- a/LICENSE +++ b/LICENSE @@ -35,7 +35,7 @@ Mozilla Public License Version 2.0 means any form of the work other than Source Code Form. 1.7. "Larger Work" - means a work that combines Covered Software with other material, in + means a work that combines Covered Software with other material, in a separate file or files, that is not Covered Software. 1.8. "License" diff --git a/src/settings/settings.html b/src/settings/settings.html index e51d3486..c379a096 100644 --- a/src/settings/settings.html +++ b/src/settings/settings.html @@ -5,9 +5,9 @@ - + - +
@@ -19,8 +19,8 @@
- + - + diff --git a/src/settings/settings.js b/src/settings/settings.js index 301252e6..676d4595 100644 --- a/src/settings/settings.js +++ b/src/settings/settings.js @@ -11,7 +11,7 @@ const themeRadioBtn = document.getElementsByName('theme'); function loadSavedData(data) { const theme = data.theme; - + if (theme === 'default') themeRadioBtn[0].checked = true; else if (theme === 'dark') @@ -25,25 +25,25 @@ document.addEventListener('DOMContentLoaded', function() { function getTheme() { let theme = ''; - + for (let i = 0; i < themeRadioBtn.length; i++) { if (themeRadioBtn[i].checked) theme = themeRadioBtn[i].value; else continue; } - + const selectedTheme = { theme: theme }; - + return selectedTheme; } for (let i = 0; i < themeRadioBtn.length; i++) { themeRadioBtn[i].onclick = function() { const theme = getTheme(); - + browser.storage.local.set(theme); // notify background.js that theme settings have changed