WebView: Add factory function.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2021-10-25 12:17:10 -07:00
parent 6676f1c6ac
commit b853856317
2 changed files with 6 additions and 2 deletions

View File

@@ -362,7 +362,7 @@ export class ServerManagerView {
tabIndex,
onHover: this.onHover.bind(this, index),
onHoverOut: this.onHoverOut.bind(this, index),
webview: new WebView({
webview: WebView.create({
$root: this.$webviewsContainer,
index,
tabIndex,