Browse Source

fix(index): set reload link as attribute, not raw html

master
Leonard Kim 5 years ago
parent
commit
13cfd61c83
1 changed files with 4 additions and 1 deletions
  1. 4
    1
      index.html

+ 4
- 1
index.html View File

@@ -93,12 +93,15 @@
93 93
                         + "font-size:small;"
94 94
                         + "cursor: pointer'>" + showMoreText + "</a>"
95 95
                         + "&nbsp;&nbsp;&nbsp;"
96
-                        + "<a href='" + href + "' style='"
96
+                        + "<a id ='reloadLink' style='"
97 97
                         + "text-decoration: underline;"
98 98
                         + "font-size:small;"
99 99
                         + "'>reload now</a>"
100 100
                         + "</div>";
101 101
 
102
+                    var reloadLink = document.getElementById('reloadLink');
103
+                    reloadLink.setAttribute('href', href);
104
+
102 105
                     var showMoreElem = document.getElementById("showMore");
103 106
                     showMoreElem.addEventListener('click', function () {
104 107
                             var moreInfoElem

Loading…
Cancel
Save