Skip to content

Commit

Permalink
fix: Properly handle fetch API calls with string as resource
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Härtl <jus@bitgrid.net>
  • Loading branch information
juliushaertl committed Oct 17, 2023
1 parent 2887e64 commit 29586a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/utils/xhr-request.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const interceptRequests = () => {

window.fetch = (function(fetch) {
return (input, init) => {
if (!isNextcloudUrl(input.url)) {
if (!isNextcloudUrl(input?.url ?? input)) {
return fetch(input, init)
}
if (!init) {
Expand Down

0 comments on commit 29586a8

Please sign in to comment.