Skip to content

Commit

Permalink
Fix javascript variable type (#280)
Browse files Browse the repository at this point in the history
Fix the case when the value is missing and is breaking the page script entirely.
  • Loading branch information
cmnstmntmn committed Nov 20, 2023
1 parent d1cf1e4 commit 443b379
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion priv/index.html.eex
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function() {
if (this.readyState == 4) {
window.location.href = <%= base_path %>
window.location.href = "<%= base_path %>"
}
};
xhttp.open("DELETE", link, true);
Expand Down

0 comments on commit 443b379

Please sign in to comment.