Skip to content

Commit

Permalink
infoboxes could get big, now deleting after 7 seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
reashetyrr committed Sep 6, 2022
1 parent 0245857 commit ce2683a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/js/injection_script.js
Original file line number Diff line number Diff line change
Expand Up @@ -321,8 +321,9 @@ insertInfoBox=text=>ensureDomLoaded(()=>{
div.setAttribute("aria-hidden","true")
const span=div.querySelector("span")
span.textContent=text
div.onclick=()=>document.body.removeChild(div)
div.onclick=()=>infobox_container.removeChild(div)
infobox_container.appendChild(div)
setTimeout(()=>infobox_container.removeChild(div), 7000);
}),
backgroundScriptBypassClipboard=c=>{
if(c)
Expand Down

0 comments on commit ce2683a

Please sign in to comment.