From b0b51402b4474d22858580e0ec65d5d12306bac8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20HUBSCHER?= Date: Wed, 27 Sep 2017 16:40:09 +0200 Subject: [PATCH] Cleaning space on empty lines. (#248) --- LICENSE | 2 +- src/settings/settings.html | 8 ++++---- src/settings/settings.js | 10 +++++----- 3 files changed, 10 insertions(+), 10 deletions(-) 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