Remove linter warnings
This commit is contained in:
parent
9272582bd6
commit
9bdca3bbfb
2 changed files with 10 additions and 8 deletions
|
@ -44,14 +44,14 @@ class TouchBarItem {
|
|||
}
|
||||
}
|
||||
|
||||
updateConfig(newConfig) {
|
||||
updateConfig (newConfig) {
|
||||
if (!this._owner) {
|
||||
throw new Error('Cannot call methods on TouchBarItems without assigning to a BrowserWindow');
|
||||
throw new Error('Cannot call methods on TouchBarItems without assigning to a BrowserWindow')
|
||||
}
|
||||
const dupConfig = Object.assign({}, newConfig);
|
||||
delete dupConfig.id;
|
||||
Object.assign(this.config, dupConfig);
|
||||
this._owner._updateTouchBarItem(this.toJSON());
|
||||
const dupConfig = Object.assign({}, newConfig)
|
||||
delete dupConfig.id
|
||||
Object.assign(this.config, dupConfig)
|
||||
this._owner._updateTouchBarItem(this.toJSON())
|
||||
}
|
||||
|
||||
toJSON () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue