mirror of
https://github.com/Eugeny/tabby.git
synced 2024-12-09 06:20:22 +08:00
lint
This commit is contained in:
parent
924a8da2f5
commit
a8eb0d8346
@ -222,7 +222,7 @@ export class AppService {
|
||||
}
|
||||
}
|
||||
for (const tab of this.tabs) {
|
||||
tab.destroy(true);
|
||||
tab.destroy(true)
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
@ -148,7 +148,7 @@ export class HostAppService {
|
||||
} else if (op === 'profile') {
|
||||
this.cliOpenProfile.next(argv.profileName)
|
||||
} else if (op === undefined) {
|
||||
this.newWindow();
|
||||
this.newWindow()
|
||||
} else {
|
||||
this.secondInstance.next()
|
||||
}
|
||||
|
@ -100,7 +100,7 @@ export class SettingsTabComponent extends BaseTabComponent {
|
||||
}
|
||||
|
||||
async getRecoveryToken (): Promise<any> {
|
||||
return false;
|
||||
return null
|
||||
}
|
||||
|
||||
ngOnDestroy () {
|
||||
|
@ -92,12 +92,12 @@ export class XTermFrontend extends Frontend {
|
||||
let o = window.getComputedStyle(this.xtermCore.element)
|
||||
let i = r - (parseInt(o.getPropertyValue("padding-top")) + parseInt(o.getPropertyValue("padding-bottom")))
|
||||
let l = n - (parseInt(o.getPropertyValue("padding-right")) + parseInt(o.getPropertyValue("padding-left"))) - this.xtermCore.viewport.scrollBarWidth
|
||||
let actualCellWidth = this.xtermCore._renderService.dimensions.actualCellWidth || 9;
|
||||
let actualCellHeight = this.xtermCore._renderService.dimensions.actualCellHeight || 17;
|
||||
let actualCellWidth = this.xtermCore._renderService.dimensions.actualCellWidth || 9
|
||||
let actualCellHeight = this.xtermCore._renderService.dimensions.actualCellHeight || 17
|
||||
let cols = Math.floor(l / actualCellWidth)
|
||||
let rows = Math.floor(i / actualCellHeight);
|
||||
let rows = Math.floor(i / actualCellHeight)
|
||||
|
||||
this.xterm.resize(cols, rows);
|
||||
this.xterm.resize(cols, rows)
|
||||
}
|
||||
} catch (e) {
|
||||
// tends to throw when element wasn't shown yet
|
||||
|
@ -157,7 +157,7 @@ export default class TerminalModule { // eslint-disable-line @typescript-eslint/
|
||||
})
|
||||
if (config.store.terminal.autoOpen) {
|
||||
|
||||
let argv = require('electron').remote.process.argv;
|
||||
let argv = require('electron').remote.process.argv
|
||||
if (argv[0].includes('node')) {
|
||||
argv = argv.slice(1)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user