Skip to content

Commit

Permalink
Update sv-panoid.html
Browse files Browse the repository at this point in the history
  • Loading branch information
freealise authored Apr 22, 2024
1 parent a61a987 commit bcf899d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions examples/basic/sv-panoid.html
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,11 @@ <h2>GoogleStreetViewLoader.load</h2>
messageDiv.innerHTML = this.responseText;
}
};
xhttp.open("POST", url, true);
xhttp.setRequestHeader("Content-type", "multipart/form-data");
xhttp.send( "a=replicate&url=" + encodeURIComponent(d) );
const formData = new FormData();
formData.append("a", "replicate");
formData.append("url", encodeURIComponent(d));
xhttp.open("POST", url, false);
xhttp.send(JSON.stringify(formData));
}

function showError(message) {
Expand Down

0 comments on commit bcf899d

Please sign in to comment.