diff --git a/app/assets/javascripts/requestjs.js b/app/assets/javascripts/requestjs.js index 55ca575..5c8e2ed 100644 --- a/app/assets/javascripts/requestjs.js +++ b/app/assets/javascripts/requestjs.js @@ -148,7 +148,7 @@ class FetchRequest { } catch (error) { console.error(error); } - const fetch = this.responseKind === "turbo-stream" && window.Turbo ? window.Turbo.fetch : window.fetch; + const fetch = window.Turbo ? window.Turbo.fetch : window.fetch; const response = new FetchResponse(await fetch(this.url, this.fetchOptions)); if (response.unauthenticated && response.authenticationURL) { return Promise.reject(window.location.href = response.authenticationURL);