Skip to content

Commit f1e7989

Browse files
committed
commit
1 parent b53ab60 commit f1e7989

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/base/abstracts/Controllers/FrontendPage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public function __construct(
8989

9090
$this->getAssets()->addJs("
9191
cookieStore.get('darkmode').then(function(data){
92-
if (undefined !== data.value) {
92+
if (data?.value) {
9393
\$('body').addClass('dark-mode');
9494
} else {
9595
\$('body').removeClass('dark-mode');

0 commit comments

Comments
 (0)