Skip to content

Commit ab7984f

Browse files
committed
Update to 5.1.4
1 parent 9d27d12 commit ab7984f

11 files changed

Lines changed: 60 additions & 24 deletions

.babelrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"sourceType": "script",
1010
"plugins": [
1111
["inline-replace-variables", {
12-
"__VERSION__": "5.1.3"
12+
"__VERSION__": "5.1.4"
1313
}]
1414
]
1515
}

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
5.1.4
2+
=====
3+
- Moving multiple tabs would sometimes not work when using the button or [Enter] key. This should be fixed now
4+
15
5.1.3
26
=====
37
- Fix: Popup width adjustable again instead of stuck to 800px

changelog.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<div class="logo-options">
1919
<div class="logo-box">
2020
<img src="images/browsers.svg" style="max-width: 3rem;">
21-
<h2>Tab Manager Plus 5.1.3</h2>
21+
<h2>Tab Manager Plus 5.1.4</h2>
2222
</div>
2323
</div>
2424
<div class="toggle-options">
@@ -34,6 +34,11 @@ <h3>Here's what's planned for future versions</h3>
3434
<h3>Here's what's new since the last time</h3>
3535
<div class="toggle-box">
3636

37+
<h3>5.1.4</h3>
38+
<ul>
39+
<li>Fix: Moving multiple tabs would sometimes not work when using the button or [Enter] key. This should be fixed now</li>
40+
</ul>
41+
3742
<h3>5.1.3</h3>
3843
<ul>
3944
<li>Fix: Popup width adjustable again instead of stuck to 800px</li>

manifest-firefox.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "Tab Manager Plus for Firefox",
33
"short_name": "Tab Manager+",
4-
"version": "5.1.3",
4+
"version": "5.1.4",
55
"manifest_version": 2,
66
"description": "Quickly find open tabs, see all windows in one view, find duplicates and limit tabs per window. The best Tab Manager for Firefox.",
77
"author": "stefanXO",

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "Tab Manager Plus for Chrome",
33
"short_name": "Tab Manager+",
4-
"version": "5.1.3",
4+
"version": "5.1.4",
55
"manifest_version": 2,
66
"offline_enabled": true,
77
"description": "Quickly find open tabs, see all windows in one view, find duplicates and limit tabs per window. The best Tab Manager for Chrome.",

outlib/TabManager.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ TabManager = function (_React$Component) {_inherits(TabManager, _React$Component
5252
if (typeof localStorage["sessionsFeature"] === "undefined") localStorage["sessionsFeature"] = "0";
5353
if (typeof localStorage["hideWindows"] === "undefined") localStorage["hideWindows"] = "0";
5454
if (typeof localStorage["filter-tabs"] === "undefined") localStorage["filter-tabs"] = "0";
55-
if (typeof localStorage["version"] === "undefined") localStorage["version"] = "5.1.3";
55+
if (typeof localStorage["version"] === "undefined") localStorage["version"] = "5.1.4";
5656

5757
layout = localStorage["layout"];
5858
tabLimit = JSON.parse(localStorage["tabLimit"]);

outlib/TabOptions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ TabOptions = function (_React$Component) {_inherits(TabOptions, _React$Component
66
_this.state = {};return _this;
77
}_createClass(TabOptions, [{ key: "logo", value: function logo()
88
{
9-
var logo = [React.createElement("img", { src: "images/browsers.svg", style: { maxWidth: "3rem" } }), React.createElement("h2", null, "Tab Manager Plus ", "5.1.3")];
9+
var logo = [React.createElement("img", { src: "images/browsers.svg", style: { maxWidth: "3rem" } }), React.createElement("h2", null, "Tab Manager Plus ", "5.1.4")];
1010

1111
return (
1212
React.createElement("div", { className: "logo-options" },

outlib/TabOptionsFirefox.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ TabOptions = function (_React$Component) {_inherits(TabOptions, _React$Component
66
_this.state = {};return _this;
77
}_createClass(TabOptions, [{ key: "logo", value: function logo()
88
{
9-
var logo = [React.createElement("img", { src: "images/browsers.svg", style: { maxWidth: "3rem" } }), React.createElement("h2", null, "Tab Manager Plus ", "5.1.3")];
9+
var logo = [React.createElement("img", { src: "images/browsers.svg", style: { maxWidth: "3rem" } }), React.createElement("h2", null, "Tab Manager Plus ", "5.1.4")];
1010

1111
return (
1212
React.createElement("div", { className: "logo-options" },

outlib/background.js

Lines changed: 39 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,43 @@
22

33

44

5-
function _callee(tabs, isIncognito) {var first, t, i, w, tab;return regeneratorRuntime.wrap(function _callee$(_context) {while (1) {switch (_context.prev = _context.next) {case 0:
6-
first = tabs.shift();
5+
function _callee(tabs, isIncognito) {var pinnedIndex, firstTab, t, i, firstPinned, w, _iteratorNormalCompletion2, _didIteratorError2, _iteratorError2, _iterator2, _step2, oldTabId, oldTab, tabPinned, movedTabs, newTab;return regeneratorRuntime.wrap(function _callee$(_context) {while (1) {switch (_context.prev = _context.next) {case 0:
6+
7+
pinnedIndex = 0;
8+
firstTab = tabs.shift();
79
t = [];
810
for (i = 0; i < tabs.length; i++) {
911
t.push(tabs[i].id);
10-
};_context.next = 6;return (
11-
browser.windows.create({ tabId: first.id, incognito: !!isIncognito }));case 6:w = _context.sent;_context.next = 9;return (
12-
browser.tabs.update(first.id, { pinned: first.pinned }));case 9:if (!(
13-
t.length > 0)) {_context.next = 15;break;}_context.next = 12;return (
14-
browser.tabs.move(t, { windowId: w.id, index: -1 }));case 12:tab = _context.sent;_context.next = 15;return (
15-
browser.tabs.update(tab.id, { pinned: tab.pinned }));case 15:_context.next = 17;return (
12+
};
13+
14+
firstPinned = firstTab.pinned;_context.next = 8;return (
15+
browser.windows.create({ tabId: firstTab.id, incognito: !!isIncognito }));case 8:w = _context.sent;if (!
16+
firstPinned) {_context.next = 13;break;}_context.next = 12;return (
17+
browser.tabs.update(w.tabs[0].id, { pinned: firstPinned }));case 12:
18+
pinnedIndex++;case 13:if (!(
19+
20+
21+
t.length > 0)) {_context.next = 60;break;}
22+
i = 0;_iteratorNormalCompletion2 = true;_didIteratorError2 = false;_iteratorError2 = undefined;_context.prev = 18;_iterator2 =
23+
t[Symbol.iterator]();case 20:if (_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done) {_context.next = 45;break;}oldTabId = _step2.value;
24+
i++;_context.next = 25;return (
25+
browser.tabs.get(oldTabId));case 25:oldTab = _context.sent;
26+
tabPinned = oldTab.pinned;
27+
movedTabs = [];if (
28+
tabPinned) {_context.next = 34;break;}_context.next = 31;return (
29+
browser.tabs.move(oldTabId, { windowId: w.id, index: -1 }));case 31:movedTabs = _context.sent;_context.next = 37;break;case 34:_context.next = 36;return (
30+
31+
browser.tabs.move(oldTabId, { windowId: w.id, index: pinnedIndex++ }));case 36:movedTabs = _context.sent;case 37:if (!(
32+
33+
movedTabs.length > 0)) {_context.next = 42;break;}
34+
newTab = movedTabs[0];if (!
35+
tabPinned) {_context.next = 42;break;}_context.next = 42;return (
36+
browser.tabs.update(newTab.id, { pinned: tabPinned }));case 42:_iteratorNormalCompletion2 = true;_context.next = 20;break;case 45:_context.next = 51;break;case 47:_context.prev = 47;_context.t0 = _context["catch"](18);_didIteratorError2 = true;_iteratorError2 = _context.t0;case 51:_context.prev = 51;_context.prev = 52;if (!_iteratorNormalCompletion2 && _iterator2.return) {_iterator2.return();}case 54:_context.prev = 54;if (!_didIteratorError2) {_context.next = 57;break;}throw _iteratorError2;case 57:return _context.finish(54);case 58:return _context.finish(51);case 59:
37+
38+
39+
;case 60:_context.next = 62;return (
1640

17-
browser.windows.update(w.id, { focused: true }));case 17:case "end":return _context.stop();}}}, _callee, this);}));return function createWindowWithTabs(_x, _x2) {return _ref.apply(this, arguments);};}();var focusOnTabAndWindow = function () {var _ref2 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(
41+
browser.windows.update(w.id, { focused: true }));case 62:case "end":return _context.stop();}}}, _callee, this, [[18, 47, 51, 59], [52,, 54, 58]]);}));return function createWindowWithTabs(_x, _x2) {return _ref.apply(this, arguments);};}();var focusOnTabAndWindow = function () {var _ref2 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(
1842

1943

2044
function _callee2(tab) {return regeneratorRuntime.wrap(function _callee2$(_context2) {while (1) {switch (_context2.prev = _context2.next) {case 0:_context2.next = 2;return (
@@ -168,13 +192,13 @@
168192
} catch (e) {
169193
openInOwnTab = false;
170194
}
171-
console.log(openInOwnTab);if (!
172-
openInOwnTab) {_context7.next = 11;break;}_context7.next = 7;return (
173-
browser.browserAction.setPopup({ popup: "" }));case 7:_context7.next = 9;return (
174-
browser.browserAction.onClicked.addListener(openAsOwnTab));case 9:_context7.next = 15;break;case 11:_context7.next = 13;return (
195+
console.log(openInOwnTab);_context7.next = 6;return (
196+
browser.browserAction.onClicked.removeListener(openAsOwnTab));case 6:if (!
197+
openInOwnTab) {_context7.next = 13;break;}_context7.next = 9;return (
198+
browser.browserAction.setPopup({ popup: "" }));case 9:_context7.next = 11;return (
199+
browser.browserAction.onClicked.addListener(openAsOwnTab));case 11:_context7.next = 15;break;case 13:_context7.next = 15;return (
175200

176-
browser.browserAction.setPopup({ popup: "popup.html?popup=true" }));case 13:_context7.next = 15;return (
177-
browser.browserAction.onClicked.removeListener(openAsOwnTab));case 15:case "end":return _context7.stop();}}}, _callee7, this);}));return function setupPopup() {return _ref7.apply(this, arguments);};}();var setupListeners = function () {var _ref8 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(
201+
browser.browserAction.setPopup({ popup: "popup.html?popup=true" }));case 15:case "end":return _context7.stop();}}}, _callee7, this);}));return function setupPopup() {return _ref7.apply(this, arguments);};}();var setupListeners = function () {var _ref8 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(
178202

179203

180204

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tab-manager",
3-
"version": "5.1.3",
3+
"version": "5.1.4",
44
"description": "This is an extended version of the old Tab Manager Google Chrome extension. Should work on both Chrome and Firefox. Malware free, with a new view type and many new features.",
55
"main": "index.js",
66
"directories": {
@@ -23,8 +23,11 @@
2323
"homepage": "https://github.com/stefanXO/Tab-Manager#readme",
2424
"devDependencies": {
2525
"babel-cli": "^6.26.0",
26+
"babel-core": "^6.26.3",
2627
"babel-plugin-inline-replace-variables": "^1.3.1",
28+
"babel-plugin-transform-async-to-generator": "^6.24.1",
2729
"babel-plugin-transform-react-createelement-to-jsx": "^1.1.0",
30+
"babel-preset-browser": "^1.0.1",
2831
"babel-preset-es2015": "^6.24.1",
2932
"babel-preset-es2017": "^6.24.1",
3033
"babel-preset-react": "^6.24.1",

0 commit comments

Comments
 (0)