We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7bc420a commit c248b62Copy full SHA for c248b62
coderstats/data/coderstats.js
@@ -1,8 +1,8 @@
1
-var path = document.location.pathname,
+let path = document.location.pathname,
2
details,
3
login,
4
url;
5
-
+
6
if (m = path.match(/^\/([\w-]+)\??.*?/)) {
7
login = m[1].trim();
8
if (-1 === ['timeline', 'languages', 'blog', 'explore'].indexOf(login)) {
@@ -16,10 +16,7 @@ if (m = path.match(/^\/([\w-]+)\??.*?/)) {
16
17
18
function addLink() {
19
- let cslink = document.getElementById('coderstats');
20
- if (cslink) return;
21
22
- var li = document.createElement('li');
+ let li = document.createElement('li');
23
li.setAttribute('id', 'coderstats');
24
li.setAttribute('class', 'vcard-detail pt-1');
25
li.setAttribute('itemprop', 'url');
0 commit comments