deal with initial state without hash
This commit is contained in:
parent
899ff9cd35
commit
5f2b3c4956
4
index.js
4
index.js
|
@ -27,6 +27,10 @@ function selectTheme() {
|
|||
function selectFont() {
|
||||
var font = window.location.hash.substring(1);
|
||||
|
||||
if (font === "") {
|
||||
font = "input";
|
||||
}
|
||||
|
||||
if (font === "input") {
|
||||
$("pre").css({ fontFamily: "Input Mono, monospace" });
|
||||
$("textarea").css({ fontFamily: "Input Mono, monospace" });
|
||||
|
|
Loading…
Reference in New Issue