mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
Formatting
This commit is contained in:
parent
e101e90054
commit
065a09487b
1 changed files with 3 additions and 4 deletions
|
@ -50,8 +50,7 @@
|
||||||
node2 = document.getElementById('theme_source_2');
|
node2 = document.getElementById('theme_source_2');
|
||||||
node1.setAttribute('rel', 'stylesheet alternate');
|
node1.setAttribute('rel', 'stylesheet alternate');
|
||||||
node2.setAttribute('rel', 'stylesheet');
|
node2.setAttribute('rel', 'stylesheet');
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
localStorage.setItem('theme', 'light');
|
localStorage.setItem('theme', 'light');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -61,12 +60,12 @@
|
||||||
if (node1.getAttribute("rel") == "stylesheet") {
|
if (node1.getAttribute("rel") == "stylesheet") {
|
||||||
node1.setAttribute("rel", "stylesheet alternate");
|
node1.setAttribute("rel", "stylesheet alternate");
|
||||||
node2.setAttribute("rel", "stylesheet");
|
node2.setAttribute("rel", "stylesheet");
|
||||||
try {editor?.setOption("theme", "dark")} catch {};
|
try { editor.setOption("theme", "dark") } catch { };
|
||||||
localStorage.setItem("theme", "dark");
|
localStorage.setItem("theme", "dark");
|
||||||
} else {
|
} else {
|
||||||
node2.setAttribute("rel", "stylesheet alternate");
|
node2.setAttribute("rel", "stylesheet alternate");
|
||||||
node1.setAttribute("rel", "stylesheet");
|
node1.setAttribute("rel", "stylesheet");
|
||||||
try {editor.setOption("theme", "light")} catch {};
|
try { editor.setOption("theme", "light") } catch { };
|
||||||
localStorage.setItem("theme", "light");
|
localStorage.setItem("theme", "light");
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Add table
Reference in a new issue