fix path not defined
This commit is contained in:
parent
be57ada3fa
commit
e5541155bd
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ class newComment extends HTMLElement {
|
||||||
script.src = "https://hCaptcha.com/1/api.js";
|
script.src = "https://hCaptcha.com/1/api.js";
|
||||||
script.type = 'text/javascript';
|
script.type = 'text/javascript';
|
||||||
script.onload = () => {
|
script.onload = () => {
|
||||||
let pageName = path.split("/").pop();
|
let pageName = window.location.pathname.split("/").pop();
|
||||||
this.parentElement.innerHTML = `
|
this.parentElement.innerHTML = `
|
||||||
<form action="/API/newComment.php" method="post">
|
<form action="/API/newComment.php" method="post">
|
||||||
<label for="name">Name:</label><br>
|
<label for="name">Name:</label><br>
|
||||||
|
|
Loading…
Reference in a new issue