mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 01:07:58 +01:00
Fix tabs.remove for count === undefined.
This commit is contained in:
@@ -300,7 +300,7 @@ const Tabs = Module("tabs", {
|
|||||||
*/
|
*/
|
||||||
// FIXME: what is quitOnLastTab {1,2} all about then, eh? --djk
|
// FIXME: what is quitOnLastTab {1,2} all about then, eh? --djk
|
||||||
remove: function (tab, count, focusLeftTab, quitOnLastTab) {
|
remove: function (tab, count, focusLeftTab, quitOnLastTab) {
|
||||||
count = Math.max(count, 1);
|
count = count || 1;
|
||||||
|
|
||||||
if (quitOnLastTab >= 1 && this.count <= count) {
|
if (quitOnLastTab >= 1 && this.count <= count) {
|
||||||
if (dactyl.windows.length > 1)
|
if (dactyl.windows.length > 1)
|
||||||
|
|||||||
Reference in New Issue
Block a user