preventdefault - Angular 2 launch custom protocol and catch if application isn't installed -


so working on launching desktop utility website powered angular 4, 1 thing noticed if regedit key isn't present windows 10 displays window windows store, isn't helpful. find way launch utility or if fails open new tab on how download , install. chrome says request canceled in network debugger if program launches.

i have been researching writing http wrapper doesn't intercept network requests made a tag didn't work.

i launch utility so:

public triggerfileagent(param: string)   {       var filetag = document.createelement("a");     filetag.id = "fileutility";     filetag.href = "x-file-agent://" + param;     document.body.appendchild(filetag);     filetag.click();     settimeout(function() {       document.body.removechild(document.getelementbyid("fileutility"));     }, 600);   } 


Comments

Popular posts from this blog

javascript - Create a stacked percentage column -

Optimising Firebase database by automatically overwriting data -

javascript - Angular UI-Grid customTemplate directive causing rows to load slowly/? -