just typo in readme example
letsdoyi opened this issue Β· comments
Doyi Kim commented
https://github.com/dailymotion/vast-client-js/blob/master/docs/api/vast-parser.md#example-5
found typo. please check this out π
timoeut
=> timeout
vastParser.getAndParseVAST('http://example.dailymotion.com/vast.xml')
.then(res => {
// Do something with the parsed VAST response
})
.catch(err => {
// Deal with the error
});
// With some options
const options = {
timoeut: 5000, // <<<<<<<<< typo
withCredentials: true,
wrapperLimit: 7
}
vastParser.getAndParseVAST('http://example.dailymotion.com/vast.xml', options)
.then(res => {
// Do something with the parsed VAST response
})
.catch(err => {
// Deal with the error
});
Pauline M commented
Hi thanks for reporting this,
it will be corrected in the next update of vast-client-js :)