Fix stying.

This commit is contained in:
Zhongyi Tong
2017-07-09 23:08:59 +08:00
parent d3c2da7961
commit 9e6bb1b48f
2 changed files with 2 additions and 2 deletions

View File

@@ -111,7 +111,7 @@ class ServerManagerView {
materialIcon: 'settings',
url: `file://${__dirname}/preference.html#${nav}`
});
this.tabs[this.functionalTabs['Settings']].webview.send('switch-settings-nav', nav);
this.tabs[this.functionalTabs.Settings].webview.send('switch-settings-nav', nav);
}
openAbout() {

View File

@@ -28,7 +28,7 @@ class PreferenceView extends BaseComponent {
setDefaultView() {
let nav = 'General';
const hasTag = window.location.hash;
if(hasTag) {
if (hasTag) {
nav = hasTag.substring(1);
}
this.handleNavigation(nav);