We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1325c9 commit 4e03a3aCopy full SHA for 4e03a3a
src/utils/api/activedTabsHistory.js
@@ -1,14 +1,11 @@
1
const HistoryActiveTabs = function () {
2
this.tabsId = [];
3
};
4
-HistoryActiveTabs.prototype.popLastTabID = function () {
5
- return this.tabsId.pop();
6
-};
7
HistoryActiveTabs.prototype.reset = function () {
8
9
10
HistoryActiveTabs.prototype.add = function (id) {
11
- this.tabsId.push(id);
+ if (id) this.tabsId.push(id);
12
13
HistoryActiveTabs.prototype.remove = function (id) {
14
const tabIDs = this.tabsId;
0 commit comments