[Pkg-mozext-commits] [tabmixplus] 10/13: Some Eslint indent fix

David Prévot taffit at moszumanska.debian.org
Sat Aug 5 15:28:28 UTC 2017


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to tag 0.5.0.4pre.170525a1
in repository tabmixplus.

commit 0f29e68a4c84bb675e7a6047d15e3b7a9e1906d9
Author: onemen <tabmix.onemen at gmail.com>
Date:   Wed May 24 10:59:57 2017 +0300

    Some Eslint indent fix
---
 .eslintrc.js                           | 2 +-
 chrome/content/session/sessionStore.js | 4 +++-
 chrome/content/tab/tab.js              | 7 +++----
 3 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/.eslintrc.js b/.eslintrc.js
index a9ab9a4..98ba3fa 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -10,7 +10,7 @@ module.exports = {
 
   // for eslint 2.0.0
   "parserOptions": {
-    "ecmaVersion": 6
+    "ecmaVersion": 8
   },
 
   "rules": {
diff --git a/chrome/content/session/sessionStore.js b/chrome/content/session/sessionStore.js
index ed16b12..f044a3b 100644
--- a/chrome/content/session/sessionStore.js
+++ b/chrome/content/session/sessionStore.js
@@ -363,12 +363,14 @@ var TMP_ClosedTabs = {
       var _uri = makeURI(url);
       if (_uri.scheme == "about" && title === "")
         url = title = "about:blank";
-      else try {
+      else {
+        try {
           url = _uri.scheme == "about" ? _uri.spec :
             _uri.scheme + "://" + _uri.hostPort + _uri.path;
         } catch (e) {
           url = title;
         }
+      }
       var label = title ? title : url;
       let count = "";
       if (ltr) {
diff --git a/chrome/content/tab/tab.js b/chrome/content/tab/tab.js
index 0c258e1..f590e63 100644
--- a/chrome/content/tab/tab.js
+++ b/chrome/content/tab/tab.js
@@ -669,10 +669,9 @@ Tabmix.tabsUtils = {
       document.getAnonymousElementByAttribute(this.tabBar, "command", "cmd_newNavigatorTab");
     this._show_newtabbutton = "aftertabs";
 
-    let attr = ["notpinned", "autoreload", "protected",
-      "locked"].filter(att => {
-        return Tabmix.prefs.getBoolPref("extraIcons." + att);
-      });
+    let attr = ["notpinned", "autoreload", "protected", "locked"].filter(att => {
+      return Tabmix.prefs.getBoolPref("extraIcons." + att);
+    });
     if (attr.length)
       this.tabBar.setAttribute("tabmix_icons", attr.join(" "));
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/tabmixplus.git



More information about the Pkg-mozext-commits mailing list