2/* global getSettingValue, updateLocalStorage, updateTheme */
3/* global addClass, removeClass, onEach, onEachLazy */
4▶/* global MAIN_ID, getVar, nonnull */
5
6"use strict";
· · ·
7
8▶(function() {
9 const isSettingsPage = window.location.pathname.endsWith("/settings.html");
10
· · ·
17 * @param {string|boolean} value
18 */
19▶ function changeSetting(settingName, value) {
20 if (settingName === "theme") {
21 const useSystem = value === "system preference" ? "true" : "false";
· · ·
58 }
59
60▶ function showLightAndDark() {
61 removeClass(document.getElementById("preferred-light-theme"), "hidden");
62 removeClass(document.getElementById("preferred-dark-theme"), "hidden");
· · ·
63 }
64
65▶ function hideLightAndDark() {
66 addClass(document.getElementById("preferred-light-theme"), "hidden");
67 addClass(document.getElementById("preferred-dark-theme"), "hidden");
+ 11 more matches in this file