Fixes #137 [BUG] Top Site Detail shows "undefined" after visiting a site for a very short period of time
Changes
Removes the await from the updateOriginFavicon function call in the updateAkitaData function definition in storage.js. This await was causing an issue because the updateOriginFavicon function awaits a fetch on the favicon image which may take an indefinite time to complete, blocking the function and in-turn indefinitely blocking data storage in the updateAkitaData function.
Adds text display handling for when visitCountor timeSpent are 0.
Fixes #137 [BUG] Top Site Detail shows "undefined" after visiting a site for a very short period of time
Changes
await
from theupdateOriginFavicon
function call in theupdateAkitaData
function definition instorage.js
. Thisawait
was causing an issue because theupdateOriginFavicon
function awaits a fetch on the favicon image which may take an indefinite time to complete, blocking the function and in-turn indefinitely blocking data storage in theupdateAkitaData
function.visitCount
ortimeSpent
are 0.