refactor: waitForWebview has now timeout support and documentation
This MR introduces a timeout for the waitForWebview
utility function.
Before: If the webview failed to initialize, the waitForWebview would hang indefinitely.
After: If the webview fails to initialize, we show an error after 500ms.
Related to #814 (closed)
Edited by Tomas Vik (OOO back on 2024-09-23)