fixed linting errors

This commit is contained in:
Akash Nimare
2017-08-10 15:44:25 +05:30
committed by GitHub
parent 4d8c8e08a0
commit bf35db26bd

View File

@@ -60,7 +60,9 @@ class WebView extends BaseComponent {
}); });
this.$el.addEventListener('dom-ready', () => { this.$el.addEventListener('dom-ready', () => {
if (this.props.role === 'server') this.$el.classList.add('onload'); if (this.props.role === 'server') {
this.$el.classList.add('onload');
}
this.show(); this.show();
}); });
@@ -96,7 +98,9 @@ class WebView extends BaseComponent {
this.$el.classList.remove('disabled'); this.$el.classList.remove('disabled');
setTimeout(() => { setTimeout(() => {
if (this.props.role === 'server') this.$el.classList.remove('onload'); if (this.props.role === 'server') {
this.$el.classList.remove('onload');
}
}, 1000); }, 1000);
this.focus(); this.focus();
this.loading = false; this.loading = false;