mirror of
https://ark.sudovanilla.org/Korbs/electron-tabs.git
synced 2024-12-23 12:03:54 +00:00
Make tab.setPosition not do anything if nothing is passed
This commit is contained in:
parent
6c2ead8edd
commit
ed9e63e92f
2
index.js
2
index.js
|
@ -244,7 +244,7 @@ class Tab extends EventEmitter {
|
||||||
}
|
}
|
||||||
|
|
||||||
setPosition (newPosition) {
|
setPosition (newPosition) {
|
||||||
if (newPosition === 0) {
|
if (newPosition === 0 || newPosition === undefined) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
let tabContainer = this.tabGroup.tabContainer;
|
let tabContainer = this.tabGroup.tabContainer;
|
||||||
|
|
Loading…
Reference in a new issue