From 380fccc62982d7070acb61886c6adf357e8e4c5c Mon Sep 17 00:00:00 2001 From: Volpeon Date: Sat, 15 May 2021 21:00:40 +0200 Subject: Separate script file --- content/script.js | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 content/script.js (limited to 'content') diff --git a/content/script.js b/content/script.js new file mode 100644 index 0000000..649da9e --- /dev/null +++ b/content/script.js @@ -0,0 +1,5 @@ +const lightTheme = localStorage.getItem("light"); + +if (lightTheme === "true") { + document.documentElement.classList.add("t-light"); +} -- cgit v1.2.3-70-g09d2