Skip to content

Commit cb90a98

Browse files
authored
Update SharedData.php
1 parent 41c7433 commit cb90a98

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){var n = arguments.length > 1 && arguments[1] !== undefined ? 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)}';
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)