Skip to content

Commit 642c477

Browse files
author
Illia Sakovich
authored
Merge pull request #24 from yepzy/2.0
make IE compatible
2 parents a740255 + cb90a98 commit 642c477

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SharedData.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ public function render(): string
169169

170170
public function getJsHelper(): string
171171
{
172-
return 'window["'.$this->getJsHelperName().'"]=function(e,n=null){return[window.sharedDataNamespace].concat("string"==typeof e?e.split("."):[]).reduce(function(e,t){return e===n||"object"!=typeof e||void 0===e[t]?n:e[t]},window)}';
172+
return 'window["'.$this->getJsHelperName().'"]=function(e){var n=void 0!==arguments[1]?arguments[1]:null;return[window.sharedDataNamespace].concat("string"==typeof e?e.split("."):[]).reduce(function(e,t){return e===n||"object"!=typeof e||void 0===e[t]?n:e[t]},window)}';
173173
}
174174

175175
public function __toString(): string

0 commit comments

Comments
 (0)