Skip to content

Commit d6f36eb

Browse files
committed
default script position is '0'
1 parent c62b92d commit d6f36eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Ease/Document.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public function redirect($url): void
129129
}
130130

131131
if (headers_sent()) {
132-
$this->addJavaScript('window.location = "'.$url.'"', 0, false);
132+
$this->addJavaScript('window.location = "'.$url.'"', '0', false);
133133
} else {
134134
header('Location: '.$url);
135135
}

0 commit comments

Comments
 (0)