mirror of
https://github.com/zulip/zulip-desktop.git
synced 2025-11-03 05:23:17 +00:00
Fix linting errors.
This commit is contained in:
@@ -3,10 +3,6 @@
|
||||
const Tab = require(__dirname + '/../components/tab.js');
|
||||
|
||||
class FunctionalTab extends Tab {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
}
|
||||
|
||||
template() {
|
||||
return `<div class="tab">
|
||||
<div class="server-tab-badge close-button">
|
||||
@@ -17,7 +13,7 @@ class FunctionalTab extends Tab {
|
||||
</div>
|
||||
</div>`;
|
||||
}
|
||||
|
||||
|
||||
init() {
|
||||
this.$el = this.generateNodeFromTemplate(this.template());
|
||||
this.props.$root.appendChild(this.$el);
|
||||
@@ -37,7 +33,7 @@ class FunctionalTab extends Tab {
|
||||
this.$closeButton.classList.remove('active');
|
||||
});
|
||||
|
||||
this.$closeButton.addEventListener('click', (e) => {
|
||||
this.$closeButton.addEventListener('click', e => {
|
||||
this.props.onDestroy();
|
||||
e.stopPropagation();
|
||||
});
|
||||
|
||||
@@ -3,10 +3,6 @@
|
||||
const Tab = require(__dirname + '/../components/tab.js');
|
||||
|
||||
class ServerTab extends Tab {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
}
|
||||
|
||||
template() {
|
||||
return `<div class="tab">
|
||||
<div class="server-tab-badge"></div>
|
||||
|
||||
@@ -13,7 +13,7 @@ class WebView extends BaseComponent {
|
||||
super();
|
||||
|
||||
this.props = props;
|
||||
|
||||
|
||||
this.zoomFactor = 1.0;
|
||||
this.loading = false;
|
||||
this.badgeCount = 0;
|
||||
|
||||
Reference in New Issue
Block a user