Update app.js

This commit is contained in:
Anyon 2021-12-01 10:36:12 +08:00
parent 7d745bce2f
commit 5a5242664f

View File

@ -15,6 +15,7 @@ console.log('baseRoot', appRoot)
if (!/^https?:\/\//.test(url)) {
url += url;
}
url = url.replace(/\/.\//g, '/');
return fetch(url).then(res => {
if (res.ok) {
return {getContentData: binary => binary ? res.arrayBuffer() : res.text()};