mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-26 09:57:50 +02:00
remove now unneeded refrences to and workarounds for phantomJS
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user