Source code
Revision control
Copy as Markdown
Other Tools
export var webrequest_test = {
testFetch(url) {
return fetch(url);
},
testXHR(url) {
return new Promise(resolve => {
let xhr = new XMLHttpRequest();
xhr.open("HEAD", url);
xhr.onload = () => {
resolve();
};
xhr.send();
});
},
};