diff --git a/build.py b/build.py index 2df9883..bbc226b 100755 --- a/build.py +++ b/build.py @@ -68,7 +68,7 @@ def main():
- +

Marc Beninca

@@ -302,9 +302,13 @@ padding: 10px; function check(tab) {{ const tabs = tab.split('/') let id = 'tab' + let element for (tab of tabs) {{ id = `${{id}}/${{tab}}` - document.getElementById(id).checked = true + element = document.getElementById(id) + if (element) {{ + element.checked = true + }} }} }} @@ -326,6 +330,10 @@ function main() {{ check(tab) push(tab) }} + const dark = document.getElementById('dark') + if (dark) {{ + dark.checked = true + }} }} function swap() {{