Skip to content

Commit 23b098f

Browse files
committed
Removed duplicated leftover after refactoring :S
Signed-off-by: Hofi <hofione@gmail.com>
1 parent 98a4809 commit 23b098f

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

_includes/skins.html

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -70,20 +70,6 @@
7070
return getSkinForState(getSkinModeState());
7171
}
7272

73-
function toggleSkin(event) {
74-
const currentSkinState = getSkinModeState();
75-
if (currentSkinState == darkModeStateOff) {
76-
event.target.classList.remove('fa-toggle-on');
77-
event.target.classList.add('fa-toggle-off');
78-
}
79-
else {
80-
event.target.classList.remove('fa-toggle-off');
81-
event.target.classList.add('fa-toggle-on');
82-
}
83-
setSkinModeState(currentSkinState == darkModeStateOff ? darkModeStateOn : darkModeStateOff);
84-
event.currentTarget.blur();
85-
}
86-
8773
function saveColorChanges() {
8874
const htmlStyle = window.getComputedStyle(document.documentElement);
8975
const backgroundColor = htmlStyle.backgroundColor;

0 commit comments

Comments
 (0)