* Notify the worker that the tab is now visible. * This resets the inactivity timer to prevent timeout while user is viewing.
()
| 262 | * This resets the inactivity timer to prevent timeout while user is viewing. |
| 263 | */ |
| 264 | public notifyTabVisible(): void { |
| 265 | if (this.worker && this.isConnected) { |
| 266 | this.worker.port.postMessage({ |
| 267 | type: WorkerMessageType.TAB_VISIBLE, |
| 268 | rendererId: this.rendererId |
| 269 | }); |
| 270 | } |
| 271 | } |
| 272 | |
| 273 | private handleMessage(event: MessageEvent): void { |
| 274 | const message = event.data; |
no outgoing calls
no test coverage detected