From 288dfa73871d9e6104572307b6921e10580dc225 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=A4=AA=E6=96=B0?= Date: Wed, 17 Apr 2019 18:37:21 +0800 Subject: [PATCH] icon and menu fixed --- chrome/app/scripts/contentscript.js | 45 ++++++++++++++--------------- 1 file changed, 22 insertions(+), 23 deletions(-) diff --git a/chrome/app/scripts/contentscript.js b/chrome/app/scripts/contentscript.js index 3aa2f70..eb85e9f 100644 --- a/chrome/app/scripts/contentscript.js +++ b/chrome/app/scripts/contentscript.js @@ -2,7 +2,7 @@ var threeBarSvg = ''; -var getLinks = function() { +var getLinks = function () { var header, tag, headerLevelStr, depth; var headers = document.querySelectorAll('article.markdown-body h1, article.markdown-body h2, article.markdown-body h3, article.markdown-body h4, article.markdown-body h5, article.markdown-body h6'); var links = []; @@ -23,17 +23,17 @@ var getLinks = function() { return links; }; -var openList = function(depth) { +var openList = function (depth) { var html = ''; while (depth--) { - html += '