@@ -148,6 +148,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -146,6 +146,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -157,6 +157,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -159,6 +159,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -147,6 +147,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -149,6 +149,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -147,6 +147,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -158,6 +158,12 @@ Le bonheur d’avoir dans son assiette le poisson que l’on a pêché, dans sa | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -149,6 +149,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -160,6 +160,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -147,6 +147,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -148,6 +148,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -151,6 +151,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -146,6 +146,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -145,6 +145,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -146,6 +146,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -141,6 +141,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -147,6 +147,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -148,6 +148,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -142,6 +142,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -140,6 +140,12 @@ Nuit agitée.</p> | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -146,6 +146,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -149,6 +149,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -148,6 +148,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -144,6 +144,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -148,6 +148,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -142,6 +142,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -152,6 +152,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -144,6 +144,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -154,6 +154,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -146,6 +146,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -159,6 +159,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -141,6 +141,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -148,6 +148,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -147,6 +147,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -140,6 +140,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -151,6 +151,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -150,6 +150,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -153,6 +153,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -142,6 +142,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -147,6 +147,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -150,6 +150,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -138,6 +138,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -153,6 +153,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -141,6 +141,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -151,6 +151,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -141,6 +141,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -148,6 +148,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -143,6 +143,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -148,6 +148,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -136,6 +136,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -147,6 +147,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -141,6 +141,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -150,6 +150,12 @@ Si nous n’explorons pas cette histoire, qui vit activement en nous comme les p | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -140,6 +140,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -143,6 +143,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -146,6 +146,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -142,6 +142,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -143,6 +143,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -143,6 +143,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -141,6 +141,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -144,6 +144,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -145,6 +145,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -144,6 +144,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -141,6 +141,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -147,6 +147,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -144,6 +144,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -136,6 +136,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -141,6 +141,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -148,6 +148,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -150,6 +150,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -145,6 +145,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -148,6 +148,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -151,6 +151,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -143,6 +143,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -142,6 +142,12 @@ The best way to help your IE11 users is <mark>to provide a great experience | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -159,6 +159,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -142,6 +142,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -147,6 +147,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -140,6 +140,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -139,6 +139,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -159,6 +159,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -148,6 +148,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -183,6 +183,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -143,6 +143,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -147,6 +147,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -142,6 +142,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -144,6 +144,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -143,6 +143,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -141,6 +141,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -151,6 +151,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -140,6 +140,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -143,6 +143,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -143,6 +143,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -148,6 +148,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -146,6 +146,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -148,6 +148,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -144,6 +144,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||
@@ -145,6 +145,12 @@ | |||
const selectedTheme = localStorage.getItem('theme') | |||
if (selectedTheme && selectedTheme !== 'undefined') { | |||
form.querySelector(`[value="${selectedTheme}"]`).checked = true | |||
// Also manually dispatch the event in case I want | |||
// to force a default given theme from the article with: | |||
// localStorage.setItem('theme', 'dark') | |||
form.value = selectedTheme | |||
const changeEvent = new Event('change') | |||
form.dispatchEvent(changeEvent) | |||
} | |||
} | |||