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 9685974 commit ba2285bCopy full SHA for ba2285b
1 file changed
view/base/templates/script/store/localstorage-store.phtml
@@ -1,19 +1,21 @@
1
<?php
2
declare(strict_types=1);
3
4
+use Loki\Base\ViewModel\ModuleConfig;
5
use Loki\Base\ViewModel\SectionConfig;
6
use Magento\Framework\View\Element\Template;
7
8
/** @version 1.1.8 */
9
/** @var Template $block */
10
/** @var SectionConfig $sectionConfig */
-/** @var \Loki\Base\ViewModel\ModuleConfig $moduleConfig */
11
+/** @var ModuleConfig $moduleConfig */
12
+
13
+$moduleConfig = $block->getModuleConfig();
14
if ($moduleConfig->isEnabled('MageOS_AlpineLocalStorage')) {
15
return;
16
}
17
18
$sectionConfig = $block->getSectionConfig();
-$moduleConfig = $block->getModuleConfig();
19
?>
20
<script>
21
document.addEventListener('alpine:init', () => {
0 commit comments