Suppression lignes commentées.
This commit is contained in:
parent
e829b881e8
commit
2482a65f04
@ -67,16 +67,6 @@ export class ParserForJSON implements Parsers
|
|||||||
if(parser._datasRemoteSource.url !== "")
|
if(parser._datasRemoteSource.url !== "")
|
||||||
{
|
{
|
||||||
const settings: {}=parser._datasRemoteSource.getFetchSettings();
|
const settings: {}=parser._datasRemoteSource.getFetchSettings();
|
||||||
/*
|
|
||||||
const headers=new Headers();
|
|
||||||
if(parser._datasRemoteSource.headers !== undefined)
|
|
||||||
{
|
|
||||||
for(let header of parser._datasRemoteSource.headers)
|
|
||||||
headers.append(header.key, header.value);
|
|
||||||
}
|
|
||||||
const credentials : RequestCredentials|undefined=(parser._datasRemoteSource.withCredentials) ? "include" : "omit";
|
|
||||||
const settings={ method: "GET", headers: headers, credentials: credentials };
|
|
||||||
*/
|
|
||||||
const response=await fetch(parser._datasRemoteSource.url, settings);
|
const response=await fetch(parser._datasRemoteSource.url, settings);
|
||||||
if (! response.ok)
|
if (! response.ok)
|
||||||
throw new Error(errors.parserRemoteFail);
|
throw new Error(errors.parserRemoteFail);
|
||||||
|
Loading…
Reference in New Issue
Block a user