From 3bc6a237a34425deae365e0aaf64f94ead3a4b11 Mon Sep 17 00:00:00 2001 From: Alexander Popov Date: Thu, 25 Feb 2021 04:03:39 +0300 Subject: [PATCH] fix theme icon button change icon on button by default dark theme --- index.html | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/index.html b/index.html index 71d982c..cad2ec9 100644 --- a/index.html +++ b/index.html @@ -9,8 +9,8 @@ - Hangman - + WORDs + @@ -26,14 +26,14 @@
@@ -69,6 +69,7 @@ if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) { document.body.classList.add('dark'); + document.querySelector("#theme-switch").innerHTML = "🌙"; } function switchMode(el) {