Skip to content

Commit 0b15ad4

Browse files
committed
num of words bug
1 parent 125b1db commit 0b15ad4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: popup.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454

5555
<body>
5656

57-
<h1 id="title">Vocab words!</h1>
57+
<h1>Vocab words! <span id="numOfWords"></span></h1>
5858

5959
<button id="clearActive">Clear Active</button>
6060

Diff for: popup.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function loadWords(data){
2020
tableId = 'new';
2121

2222
// display the number of active entries on the page
23-
document.getElementById("title").innerText += " " + Object.keys(data.active).length
23+
document.getElementById("numOfWords").innerText = Object.keys(data.active).length;
2424

2525
// loop from most recent words to most distant
2626
for (var i=list.length-1; i>=0; i--){

0 commit comments

Comments
 (0)