Use const, minor line break fix.

This commit is contained in:
Italo
2023-02-15 22:16:02 -03:00
committed by GitHub
parent 0b381551e0
commit 73502cea4e

View File

@@ -156,8 +156,8 @@ class WebAuthn {
* @returns {Promise<Response>} * @returns {Promise<Response>}
*/ */
#fetch(data, route, headers = {}) { #fetch(data, route, headers = {}) {
const url = new URL(route, window.location.origin).href;
let url = new URL(route, window.location.origin).href;
return fetch(url, { return fetch(url, {
method: "POST", method: "POST",
credentials: this.#includeCredentials ? "include" : "same-origin", credentials: this.#includeCredentials ? "include" : "same-origin",