remove now unneeded refrences to and workarounds for phantomJS

This commit is contained in:
Martin Raifer
2022-02-03 13:11:15 +01:00
parent 632e24137a
commit f6e4596b59
7 changed files with 6 additions and 45 deletions
+1 -2
View File
@@ -61,8 +61,7 @@ export function coreFileFetcher() {
if (!prom) {
_inflight[url] = prom = fetch(url)
.then(response => {
// fetch in PhantomJS tests may return ok=false and status=0 even if it's okay
if ((!response.ok && response.status !== 0) || !response.json) {
if (!response.ok || !response.json) {
throw new Error(response.status + ' ' + response.statusText);
}
if (response.status === 204 || response.status === 205) return; // No Content, Reset Content