Skip to content

Commit 5a879eb

Browse files
juliusknorrskjnldsv
authored andcommitted
fix: Properly handle fetch API calls with string as resource
Signed-off-by: Julius Härtl <jus@bitgrid.net>
1 parent 106bf6c commit 5a879eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/utils/xhr-request.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export const interceptRequests = () => {
4444

4545
window.fetch = (function(fetch) {
4646
return (input, init) => {
47-
if (!isNextcloudUrl(input.url)) {
47+
if (!isNextcloudUrl(input?.url ?? input)) {
4848
return fetch(input, init)
4949
}
5050
if (!init) {

0 commit comments

Comments
 (0)