We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b53ab60 commit f1e7989Copy full SHA for f1e7989
app/base/abstracts/Controllers/FrontendPage.php
@@ -89,7 +89,7 @@ public function __construct(
89
90
$this->getAssets()->addJs("
91
cookieStore.get('darkmode').then(function(data){
92
- if (undefined !== data.value) {
+ if (data?.value) {
93
\$('body').addClass('dark-mode');
94
} else {
95
\$('body').removeClass('dark-mode');
0 commit comments