diff --git a/src/bg.js b/src/bg.js index 6cc9bc9..43eea90 100644 --- a/src/bg.js +++ b/src/bg.js @@ -2,11 +2,10 @@ const kTST_ID = 'treestyletab@piro.sakura.ne.jp'; const MY_EXTENSION_NAME = 'tab-groupcolor'; var changeIcon = function(color) { - var getFavicon = function(){ + var getFavicon = function() { var favicon = undefined; var nodeList = document.getElementsByTagName("link"); - for (var i = 0; i < nodeList.length; i++) - { + for (var i = 0; i < nodeList.length; i++) { if ((nodeList[i].getAttribute("rel") == "icon") || (nodeList[i].getAttribute("rel") == "shortcut icon")) { favicon = nodeList[i].getAttribute("href"); } @@ -34,7 +33,7 @@ var changeIcon = function(color) { }; var generateRandomColor = function(seed) { - var selectColor = function (colorNum, colors){ + var selectColor = function (colorNum, colors) { if (colors < 1) { colors = 1; // defaults to one color - avoid divide by zero }