}
},
methods: {
- fetch: function (path, init) {
+ fetch: function (path, init, json = true) {
let options = {};
if (this.proxy?.useCredentials) {
if (!response.ok) {
throw new Error("Not 2xx response");
}
- return response.json();
+
+ return json ? response.json() : response;
});
},
},