From 73502cea4e315af115bec8d67f0ce9880ba5a3ee Mon Sep 17 00:00:00 2001 From: Italo Date: Wed, 15 Feb 2023 22:16:02 -0300 Subject: [PATCH] Use const, minor line break fix. --- resources/js/webauthn.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/js/webauthn.js b/resources/js/webauthn.js index 409421a..74c4e02 100644 --- a/resources/js/webauthn.js +++ b/resources/js/webauthn.js @@ -156,8 +156,8 @@ class WebAuthn { * @returns {Promise} */ #fetch(data, route, headers = {}) { - - let url = new URL(route, window.location.origin).href; + const url = new URL(route, window.location.origin).href; + return fetch(url, { method: "POST", credentials: this.#includeCredentials ? "include" : "same-origin",