mirror of
https://ark.sudovanilla.org/Korbs/electron-tabs.git
synced 2024-12-23 03:53:53 +00:00
Remove parameter check from tab.setPosition
This commit is contained in:
parent
b0534b9fc7
commit
f1ef5f790c
3
index.js
3
index.js
|
@ -236,9 +236,6 @@ class Tab extends EventEmitter {
|
||||||
}
|
}
|
||||||
|
|
||||||
setPosition (newPosition) {
|
setPosition (newPosition) {
|
||||||
if (newPosition === 0 || newPosition === undefined) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
let tabContainer = this.tabGroup.tabContainer;
|
let tabContainer = this.tabGroup.tabContainer;
|
||||||
let tabs = tabContainer.children;
|
let tabs = tabContainer.children;
|
||||||
let oldPosition = this.getPosition() - 1;
|
let oldPosition = this.getPosition() - 1;
|
||||||
|
|
Loading…
Reference in a new issue