Fix line highlighting in dark themes (#2921)

This commit is contained in:
kaz-on
2021-11-22 01:31:52 +09:00
committed by GitHub
parent c204a435b3
commit 60cdaec05f

View File

@@ -244,7 +244,7 @@ function updateHighlighting() {
const isDark = @{highlighterTheme.contains("dark").toString};
if (hash.match(/#L\d+(-L\d+)?/)) {
if (isDark) {
$('li.highlight').removeClass('highlight-dark');
$('li.highlight-dark').removeClass('highlight-dark');
} else {
$('li.highlight').removeClass('highlight');
}