Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return new Promise(async (resolve) => {
await lazyLoadContent(this.el);
await this.initSize();
await this.resizeVideoContent();
resolve();
});
}
return new Promise(async (resolve) => {
const promises = [];
promises.push(lazyLoadContent(this.el));
promises.push(this.drawChart());
await Promise.all(promises);
resolve();
});
}
return new Promise(async (resolve) => {
await lazyLoadContent(this.el);
await this.initSize();
await this.resizeVideoContent();
resolve();
});
}
lazyLoadContent(): Promise {
return lazyLoadContent(this.el);
}
return new Promise(async (resolve) => {
const promises = [];
promises.push(lazyLoadContent(this.el));
promises.push(this.initSize());
promises.push(this.initChartAndPoll());
await Promise.all(promises);
resolve();
});
}