diff --git a/.babelrc b/.babelrc index 14233ae0..88e5f1f0 100644 --- a/.babelrc +++ b/.babelrc @@ -9,7 +9,7 @@ "sourceType": "script", "plugins": [ ["inline-replace-variables", { - "__VERSION__": "5.2.1" + "__VERSION__": "5.2.2" }] ] } diff --git a/manifest-firefox.json b/manifest-firefox.json index 7a7ac4bb..8bc2d9a5 100644 --- a/manifest-firefox.json +++ b/manifest-firefox.json @@ -1,7 +1,7 @@ { "name": "Tab Manager Plus for Firefox", "short_name": "Tab Manager+", - "version": "5.2.1", + "version": "5.2.2", "manifest_version": 2, "description": "Quickly find open tabs, see all windows in one view, find duplicates and limit tabs per window. The best Tab Manager for Firefox.", "author": "stefanXO", diff --git a/outlib/TabManager.js b/outlib/TabManager.js index d2fa5676..83053a89 100644 --- a/outlib/TabManager.js +++ b/outlib/TabManager.js @@ -52,7 +52,7 @@ TabManager = function (_React$Component) {_inherits(TabManager, _React$Component if (typeof localStorage["sessionsFeature"] === "undefined") localStorage["sessionsFeature"] = "0"; if (typeof localStorage["hideWindows"] === "undefined") localStorage["hideWindows"] = "0"; if (typeof localStorage["filter-tabs"] === "undefined") localStorage["filter-tabs"] = "0"; - if (typeof localStorage["version"] === "undefined") localStorage["version"] = "5.2.1"; + if (typeof localStorage["version"] === "undefined") localStorage["version"] = "5.2.2"; layout = localStorage["layout"]; tabLimit = JSON.parse(localStorage["tabLimit"]); @@ -1662,17 +1662,23 @@ TabManager = function (_React$Component) {_inherits(TabManager, _React$Component this.setState({ bottomText: "Allows you to restore your saved windows from an external backup" }); - } }, { key: "toggleHide", value: function () {var _ref11 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee11() {var granted;return regeneratorRuntime.wrap(function _callee11$(_context11) {while (1) {switch (_context11.prev = _context11.next) {case 0:_context11.next = 2;return ( + } }, { key: "toggleHide", value: function () {var _ref11 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee11() {var granted;return regeneratorRuntime.wrap(function _callee11$(_context11) {while (1) {switch (_context11.prev = _context11.next) {case 0:if (!( - browser.permissions.request({ permissions: ["system.display"] }));case 2:granted = _context11.sent; + + navigator.userAgent.search("Firefox") > -1)) {_context11.next = 4;break;} + this.state.hideWindows = false;_context11.next = 8;break;case 4:_context11.next = 6;return ( + + browser.permissions.request({ permissions: ["system.display"] }));case 6:granted = _context11.sent; if (granted) { this.state.hideWindows = !this.state.hideWindows; } else { this.state.hideWindows = false; - } + }case 8: + + localStorage["hideWindows"] = this.state.hideWindows ? "1" : "0"; this.hideText(); - this.forceUpdate();case 7:case "end":return _context11.stop();}}}, _callee11, this);}));function toggleHide() {return _ref11.apply(this, arguments);}return toggleHide;}() }, { key: "hideText", value: function hideText() + this.forceUpdate();case 11:case "end":return _context11.stop();}}}, _callee11, this);}));function toggleHide() {return _ref11.apply(this, arguments);}return toggleHide;}() }, { key: "hideText", value: function hideText() { this.setState({ diff --git a/outlib/TabOptions.js b/outlib/TabOptions.js index 0d7adedf..a8a5f0e9 100644 --- a/outlib/TabOptions.js +++ b/outlib/TabOptions.js @@ -6,7 +6,7 @@ TabOptions = function (_React$Component) {_inherits(TabOptions, _React$Component _this.state = {};return _this; }_createClass(TabOptions, [{ key: "logo", value: function logo() { - var logo = [React.createElement("img", { src: "images/browsers.svg", style: { maxWidth: "3rem" } }), React.createElement("h2", null, "Tab Manager Plus ", "5.2.1")]; + var logo = [React.createElement("img", { src: "images/browsers.svg", style: { maxWidth: "3rem" } }), React.createElement("h2", null, "Tab Manager Plus ", "5.2.2")]; return ( React.createElement("div", { className: "logo-options" }, diff --git a/outlib/TabOptionsFirefox.js b/outlib/TabOptionsFirefox.js index 1d995cba..74941d84 100644 --- a/outlib/TabOptionsFirefox.js +++ b/outlib/TabOptionsFirefox.js @@ -6,7 +6,7 @@ TabOptions = function (_React$Component) {_inherits(TabOptions, _React$Component _this.state = {};return _this; }_createClass(TabOptions, [{ key: "logo", value: function logo() { - var logo = [React.createElement("img", { src: "images/browsers.svg", style: { maxWidth: "3rem" } }), React.createElement("h2", null, "Tab Manager Plus ", "5.2.1")]; + var logo = [React.createElement("img", { src: "images/browsers.svg", style: { maxWidth: "3rem" } }), React.createElement("h2", null, "Tab Manager Plus ", "5.2.2")]; return ( React.createElement("div", { className: "logo-options" }, diff --git a/package.json b/package.json index a35c91df..0a45b2cb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "tab-manager", - "version": "5.2.1", + "version": "5.2.2", "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.", "main": "index.js", "directories": { diff --git a/readme.md b/readme.md index c5bacc03..b3cb10fe 100644 --- a/readme.md +++ b/readme.md @@ -1,4 +1,4 @@ -# Tab Manager Plus 5.2.1 +# Tab Manager Plus 5.2.2 ##### Search through your tabs instantly, save windows for later, limit open tabs per window - and many more.