We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d155443 + 8144cc3 commit 2518291Copy full SHA for 2518291
src/fetch_response.js
@@ -60,8 +60,8 @@ export class FetchResponse {
60
} else {
61
console.warn('You must set `window.Turbo = Turbo` to automatically process Turbo Stream events with request.js')
62
}
63
+ } else {
64
+ return Promise.reject(new Error(`Expected a Turbo Stream response but got "${this.contentType}" instead`))
65
-
- return Promise.reject(new Error(`Expected a Turbo Stream response but got "${this.contentType}" instead`))
66
67
0 commit comments