ebrowser 1.0.45: sitejs/sitecss support

This commit is contained in:
James Feng Cao 2024-06-29 21:27:48 +08:00
parent e28838f738
commit 6fc7d22514
12 changed files with 64 additions and 27 deletions

View file

@ -0,0 +1,12 @@
(function() {
const originFetch = fetch;
window.fetch = (...arg) => {
if (arg[0].indexOf('area_accessible') > -1) {
return new Promise(() => {
throw new Error();
});
} else {
return originFetch(...arg);
}
}
})();