Wait for initialization

This commit is contained in:
Jordan Eldredge 2020-04-29 23:35:11 -04:00
parent f1773b3b2d
commit c2f0807338

View file

@ -87,7 +87,7 @@ class Shooter {
}
async dispose() {
this._ensureInitialized();
await this._ensureInitialized();
await this._page.close();
await this._browser.close();
this._initialized = false;