Relecture code
This commit is contained in:
parent
318353c862
commit
776c9a8f40
@ -70,11 +70,7 @@ export class ParserForJSON implements Parsers
|
||||
headers.append(header.key, header.value);
|
||||
}
|
||||
const credentials : RequestCredentials|undefined=(parser._datasRemoteSource.withCredentials) ? "include" : "omit";
|
||||
const settings={
|
||||
method: "GET",
|
||||
headers: headers,
|
||||
credentials: credentials,
|
||||
};
|
||||
const settings={ method: "GET", headers: headers, credentials: credentials };
|
||||
const response=await fetch(parser._datasRemoteSource.url, settings);
|
||||
if (! response.ok)
|
||||
throw new Error(errors.parserRemoteFail);
|
||||
|
Loading…
Reference in New Issue
Block a user