Skip to content

Commit 31df079

Browse files
committed
update title of nav element when updating dir sizes
1 parent feb2bf3 commit 31df079

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/inject.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ const loadDirSizes = async () => {
196196

197197
if (navElem) {
198198
navElem.onclick = null
199-
navElem.title = null
199+
navElem.title = 'Loading directory sizes...'
200200
}
201201

202202
dirSizes.forEach(dir => {
@@ -240,6 +240,10 @@ const loadDirSizes = async () => {
240240
dir.textContent = getHumanReadableSize(t)
241241
}
242242
})
243+
244+
if (navElem) {
245+
navElem.title = 'Directory sizes loaded successfully'
246+
}
243247
}
244248

245249
storage.get(GITHUB_TOKEN_KEY, function (data) {

0 commit comments

Comments
 (0)