css: Simplify webview CSS.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2021-10-14 19:13:30 -07:00
parent f092e99f42
commit fb5c6b365e
3 changed files with 1 additions and 10 deletions

View File

@@ -56,7 +56,6 @@ export default class WebView {
templateHTML(): HTML {
return html`
<webview
class="disabled"
data-tab-id="${this.props.tabIndex}"
src="${this.props.url}"
${new HTML({html: this.props.nodeIntegration ? "nodeIntegration" : ""})}
@@ -191,7 +190,6 @@ export default class WebView {
this.$webviewsContainer.add("loaded");
}
this.$el!.classList.remove("disabled");
this.$el!.classList.add("active");
this.focus();
this.props.onTitleChange();
@@ -237,7 +235,6 @@ export default class WebView {
}
hide(): void {
this.$el!.classList.add("disabled");
this.$el!.classList.remove("active");
}