* Unsubscribe to log event * @returns {Promise }
()
| 334 | * @returns {Promise<void>} |
| 335 | */ |
| 336 | async close() { |
| 337 | if ( |
| 338 | this._browsingContextIds !== null && |
| 339 | this._browsingContextIds !== undefined && |
| 340 | this._browsingContextIds.length > 0 |
| 341 | ) { |
| 342 | await this.bidi.unsubscribe('log.entryAdded', this._browsingContextIds) |
| 343 | } else { |
| 344 | await this.bidi.unsubscribe('log.entryAdded') |
| 345 | } |
| 346 | } |
| 347 | } |
| 348 | |
| 349 | /** |
nothing calls this directly
no test coverage detected