diff --git a/clerk.php b/clerk.php index 665a645..a80dc36 100644 --- a/clerk.php +++ b/clerk.php @@ -54,8 +54,17 @@ class Clerk extends Module * @var int */ protected $shop_id; + /** + * @var Clerk_Api + */ protected $api; + /** + * @var ClerkLogger + */ private $logger; + /** + * @var + */ protected $language; /** @@ -2322,10 +2331,9 @@ public function renderForm() } $ClerkConfirm = << function DOMready(fn) { - if (document.readyState != "loading") { + if (document.readyState !== "loading") { fn(); } else if (document.addEventListener) { document.addEventListener("DOMContentLoaded", fn); @@ -2459,7 +2467,7 @@ class ConfirmDialog { } } - var before_logging_level; + let before_logging_level; window.DOMready(function() { @@ -2514,7 +2522,7 @@ class ConfirmDialog { 'name' => 'Debug message', 'html_content' => '
PrestaShop Debug Mode is disabled' . '

When debug mode is disabled, PrestaShop hides a lot of errors and making it impossible for Clerk logger to detect and catch these errors.

' . - '

To make it possibel for Clerk logger to catch all errors you have to enable debug mode.

' . + '

To make it possible for Clerk logger to catch all errors you have to enable debug mode.

' . '

Debug is not recommended in production in a longer period of time.

' . '

When you store is in debug mode

' . '