Skip to content

Commit

Permalink
default script position is '0'
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitexus committed Nov 18, 2024
1 parent c62b92d commit d6f36eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Ease/Document.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ public function redirect($url): void
}

if (headers_sent()) {
$this->addJavaScript('window.location = "'.$url.'"', 0, false);
$this->addJavaScript('window.location = "'.$url.'"', '0', false);
} else {
header('Location: '.$url);
}
Expand Down

0 comments on commit d6f36eb

Please sign in to comment.