[show-hint addon] Fix more race conditions
[show-hint addon] Fix more race conditions

Clean up duplicated logic

Issue #3189

hackmdio/CodeMirror,MarcelGerber/CodeMirror,jkaplon/CodeMirror,ejgallego/CodeMirror,systay/CodeMirror,matthewbauer/CodeMirror,mizchi/CodeMirror,Navaneethsen/CodeMirror,cintiamh/CodeMirror,ejgallego/CodeMirror,thomasjm/CodeMirror,ashmind/CodeMirror,adobe/CodeMirror2,Navaneethsen/CodeMirror,Navaneethsen/CodeMirror,skylarkcob/CodeMirror,increpare/CodeMirror,kangkot/CodeMirror,dudb/CodeMirror,adobe/CodeMirror2,kangkot/CodeMirror,Jisuanke/CodeMirror,karthikeyansam/CodeMirror,isdampe/CodeMirror,nightwing/CodeMirror,jessegrosjean/CodeMirror,Icenium/CodeMirror,supriyantomaftuh/CodeMirror,kk9599/CodeMirror,wingify/CodeMirror,nightwing/CodeMirror,kuangyeheng/CodeMirror,trumanliu/CodeMirror,loopspace/CodeMirror,vanloswang/CodeMirror,shiren/CodeMirror,fmoliveira/CodeMirror,gkoberger/CodeMirror,amshali/CodeMirror,manderson23/CodeMirror,camellhf/CodeMirror,rasata/CodeMirror,djadmin/CodeMirror,bgrins/CodeMirror,ssxxue/CodeMirror,namin/CodeMirror,camellhf/CodeMirror,INTELOGIE/CodeMirror,antimatter15/CodeMirror,davidpham87/CodeMirror,kk9599/CodeMirror,pinbe/CodeMirror,INTELOGIE/CodeMirror,michaelerobertsjr/CodeMirror,shiren/CodeMirror,skylarkcob/CodeMirror,bocharsky-bw/CodeMirror,axter/CodeMirror,crazy4chrissi/CodeMirror,bluesh55/CodeMirror,flyskyko/CodeMirror,ThebingServices/CodeMirror,xeronith/CodeMirror,djadmin/CodeMirror,sekcheong/CodeMirror,jkaplon/CodeMirror,camellhf/CodeMirror,ficristo/CodeMirror,mizchi/CodeMirror,increpare/CodeMirror,kuangyeheng/CodeMirror,pabloferz/CodeMirror,schanzer/CodeMirror,davidpham87/CodeMirror,ficristo/CodeMirror,grzegorzmazur/CodeMirror,AlanWasTaken/codemirror,bocharsky-bw/CodeMirror,qweasd1/CodeMirror,EasonYi/CodeMirror,mizchi/CodeMirror,r7kamura/CodeMirror,vincentwoo/CodeMirror,cintiamh/CodeMirror,notepadqq/CodeMirror,systay/CodeMirror,InternetGuru/CodeMirror,rustemferreira/CodeMirror,kk9599/CodeMirror,TDaglis/CodeMirror,bfrohs/CodeMirror,ssxxue/CodeMirror,dbarnett/CodeMirror,d0liver/CodeMirror,ksanaforge/CodeMirror,NumbersInternational/CodeMirror,buchslava/CodeMirror,EasonYi/CodeMirror,ZombieHippie/CodeMirror,mihailik/CodeMirror,DustinH/CodeMirror,TechnicalPursuit/CodeMirror,melpon/CodeMirror,morrisonwudi/CodeMirror,Allenice/CodeMirror,mightyguava/CodeMirror,TDaglis/CodeMirror,alur/CodeMirror,MarcelGerber/CodeMirror,nightwing/CodeMirror,jessegrosjean/CodeMirror,hccampos/CodeMirror,anthonygego/CodeMirror,grzegorzmazur/CodeMirror,nawroth/CodeMirror,crazy4chrissi/CodeMirror,Jisuanke/CodeMirror,systay/CodeMirror,fmoliveira/CodeMirror,thomasjm/CodeMirror,ashmind/CodeMirror,Aliccer/CodeMirror,dbarnett/CodeMirror,Allenice/CodeMirror,kerabromsmu/CodeMirror,namin/CodeMirror,ksanaforge/CodeMirror,isdampe/CodeMirror,bfrohs/CodeMirror,karthikeyansam/CodeMirror,hackmdio/CodeMirror,ZombieHippie/CodeMirror,NeZaMy/CodeMirror2,schanzer/CodeMirror,InternetGuru/CodeMirror,alur/CodeMirror,manderson23/CodeMirror,philuchansky/CodeMirror,mihailik/CodeMirror,antimatter15/CodeMirror,thomasjm/CodeMirror,bgrins/CodeMirror,philuchansky/CodeMirror,sourcelair/CodeMirror,jayaprabhakar/CodeMirror,gkoberger/CodeMirror,Jisuanke/CodeMirror,Allenice/CodeMirror,NeZaMy/CodeMirror2,philuchansky/CodeMirror,karevn/CodeMirror,d0liver/CodeMirror,sanyaade-iot/CodeMirror,rrandom/CodeMirror,kuangyeheng/CodeMirror,nawroth/CodeMirror,qiankun007/CodeMirror,apatawari/CodeMirror,gkoberger/CodeMirror,pjkui/CodeMirror,happibum/CodeMirror-main,flyskyko/CodeMirror,Icenium/CodeMirror,SidPresse/CodeMirror,buchslava/CodeMirror,agendor/CodeMirror,axter/CodeMirror,TechnicalPursuit/CodeMirror,bluesh55/CodeMirror,ficristo/CodeMirror,dudb/CodeMirror,loopspace/CodeMirror,DustinH/CodeMirror,anthonygego/CodeMirror,vanloswang/CodeMirror,mightyguava/CodeMirror,ssxxue/CodeMirror,apatawari/CodeMirror,AlanWasTaken/codemirror,dbarnett/CodeMirror,SidPresse/CodeMirror,ThebingServices/CodeMirror,jayaprabhakar/CodeMirror,DustinH/CodeMirror,ZombieHippie/CodeMirror,jkaplon/CodeMirror,Icenium/CodeMirror,amshali/CodeMirror,morrisonwudi/CodeMirror,sanyaade-iot/CodeMirror,antimatter15/CodeMirror,bocharsky-bw/CodeMirror,shiren/CodeMirror,jessegrosjean/CodeMirror,dperetti/CodeMirror,notepadqq/CodeMirror,xeronith/CodeMirror,codio/CodeMirror,namin/CodeMirror,supriyantomaftuh/CodeMirror,nawroth/CodeMirror,supriyantomaftuh/CodeMirror,mihailik/CodeMirror,ejgallego/CodeMirror,vincentwoo/CodeMirror,fmoliveira/CodeMirror,bfrohs/CodeMirror,sekcheong/CodeMirror,NumbersInternational/CodeMirror,codio/CodeMirror,notepadqq/CodeMirror,d0liver/CodeMirror,michaelerobertsjr/CodeMirror,apatawari/CodeMirror,amshali/CodeMirror,kangkot/CodeMirror,pjkui/CodeMirror,tpphu/CodeMirror,symbla/CodeMirror,happibum/CodeMirror-main,ksanaforge/CodeMirror,AlanWasTaken/codemirror,InternetGuru/CodeMirror,rustemferreira/CodeMirror,mtaran-google/CodeMirror,hccampos/CodeMirror,adobe/CodeMirror2,pabloferz/CodeMirror,mightyguava/CodeMirror,matthewbauer/CodeMirror,morrisonwudi/CodeMirror,NumbersInternational/CodeMirror,rrandom/CodeMirror,djadmin/CodeMirror,agendor/CodeMirror,wingify/CodeMirror,skylarkcob/CodeMirror,flyskyko/CodeMirror,r7kamura/CodeMirror,melpon/CodeMirror,hccampos/CodeMirror,dudb/CodeMirror,Dominator008/CodeMirror,jayaprabhakar/CodeMirror,Dominator008/CodeMirror,karevn/CodeMirror,EasonYi/CodeMirror,SidPresse/CodeMirror,rrandom/CodeMirror,INTELOGIE/CodeMirror,qiankun007/CodeMirror,matthewbauer/CodeMirror,tpphu/CodeMirror,Aliccer/CodeMirror,sourcelair/CodeMirror,TDaglis/CodeMirror,symbla/CodeMirror,qweasd1/CodeMirror,codio/CodeMirror,cintiamh/CodeMirror,sanyaade-iot/CodeMirror,pinbe/CodeMirror,mtaran-google/CodeMirror,pabloferz/CodeMirror,rasata/CodeMirror,hackmdio/CodeMirror,tpphu/CodeMirror,mtaran-google/CodeMirror,r7kamura/CodeMirror,buchslava/CodeMirror,increpare/CodeMirror,TechnicalPursuit/CodeMirror,rustemferreira/CodeMirror,kerabromsmu/CodeMirror,kerabromsmu/CodeMirror,trumanliu/CodeMirror,Aliccer/CodeMirror,alur/CodeMirror,dperetti/CodeMirror,Dominator008/CodeMirror,MarcelGerber/CodeMirror,schanzer/CodeMirror,symbla/CodeMirror,karthikeyansam/CodeMirror,karevn/CodeMirror,xeronith/CodeMirror,anthonygego/CodeMirror,vanloswang/CodeMirror,manderson23/CodeMirror,wingify/CodeMirror,vincentwoo/CodeMirror,michaelerobertsjr/CodeMirror,agendor/CodeMirror,trumanliu/CodeMirror,rasata/CodeMirror,qiankun007/CodeMirror,crazy4chrissi/CodeMirror,ThebingServices/CodeMirror,bluesh55/CodeMirror,dperetti/CodeMirror,NeZaMy/CodeMirror2,happibum/CodeMirror-main,axter/CodeMirror,davidpham87/CodeMirror,isdampe/CodeMirror,bgrins/CodeMirror,qweasd1/CodeMirror,sekcheong/CodeMirror,loopspace/CodeMirror,melpon/CodeMirror,grzegorzmazur/CodeMirror,pinbe/CodeMirror,pjkui/CodeMirror,ashmind/CodeMirror,sourcelair/CodeMirror