Use const, minor line break fix.
This commit is contained in:
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user