23 }
24 );
25 console.debug("User theming enabled.");
26 let t,27 n = s();
28 switch ((console.debug(`User's theme variation: ${n}`), n)) {
29 case 0:
5(() => {
6 (() => {
7 var t,
8 n, 9 e = document.body;
10 function s() {
11 return parseInt(localStorage.getItem("wcTheme") || 2);
4
5(() => {
6 (() => {
7 var t, 8 n,
9 e = document.body;
10 function s() {
4005 )
4006 ) {
4007 var e,
4008 n,4009 o = i.default(this._element).closest(".nav, .list-group")[0],
4010 r = l.getSelectorFromElement(this._element);
4011 if (o) {
4004 i.default(this._element).hasClass("disabled")
4005 )
4006 ) {
4007 var e,4008 n,
4009 o = i.default(this._element).closest(".nav, .list-group")[0],
4010 r = l.getSelectorFromElement(this._element);
In JavaScript, variables can be assigned during declaration, or at any point afterwards using an assignment statement. For example, in the following code, foo
is initialized during declaration, while bar
is initialized later.
var foo = 1;
var bar;
if (foo) {
bar = 1;
} else {
bar = 2;
}
function foo() {
var bar;
let baz;
}
function foo() {
var bar = 1;
let baz = 2;
const qux = 3;
}