Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion assets/components/minishop3/js/web/ms3.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const ms3 = {
config: {},
init () {
this.config = window.ms3Config
this.config = document.ms3Config
this.checkToken()
ms3.form.init()
ms3.cart.init()
Expand Down
2 changes: 1 addition & 1 deletion core/components/minishop3/src/MiniShop3.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ public function registerFrontend($ctx = 'web')

$data = json_encode($js_setting, JSON_UNESCAPED_UNICODE);
$this->modx->regClientStartupScript(
'<script>ms3Config = ' . $data . ';</script>',
'<script>document.ms3Config = ' . $data . ';</script>',
true
);
}
Expand Down