This commit is contained in:
Ethan O'Brien 2022-05-07 15:07:32 +00:00
parent 9bd722de23
commit 0d6736f624
3 changed files with 11 additions and 3 deletions

View file

@ -627,11 +627,18 @@ window.EJS_main = function(_0xa88a13, _0x17edbf, _0x2c1832) {
}
};
_0x550f17.a.get = function(oldGet) {
return function(url) {
return function(url, set) {
if (url.startsWith('blob:')) {
return new Promise(async function(resolve, reject) {
var a = await fetch(url);
a = await a.arrayBuffer();
if (set && set.responseType && set.responseType.toLowerCase() === 'arraybuffer') {
a = await a.arrayBuffer();
} else {
a = await a.text();
try {
a = JSON.parse(a);
} catch(e) {}
}
resolve({data:a});
})
} else {

2
data/emu-min.js vendored

File diff suppressed because one or more lines are too long

View file

@ -67,6 +67,7 @@ var EJS = function(_0x574f5e) {
return _0x1d686b(_0x1d686b.s);
}([function(a) {
a.exports = function(error, element, _this) {
console.warn(error)
if (error.response.status === 0) {
element.innerHTML = '<strong style="color:#f00;text-shadow: 0px 0px 3px;"><a target="_blank" href="https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS/Errors">'+_this.localization('CORS Error')+'</a></strong>';
} else {