Skip to content

Commit ce51a77

Browse files
jyn514Joshua Nelson
authored and
Joshua Nelson
committed
Fix highlighting for users visiting in private mode
1 parent fb25297 commit ce51a77

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

templates/macros.html

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
case "ayu":
3131
stylesheet = "https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.4.0/styles/dark.min.css";
3232
break;
33+
case "null": // The user is visiting docs.rs for the first time and hasn't set a theme yet.
3334
case "light":
3435
stylesheet = "https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.4.0/styles/github.min.css";
3536
break;

0 commit comments

Comments
 (0)