node.js - electron url scheme "open-url" event -


i did following in index.js;

electron.remote.app.on("open-url", function(event, url) {   console.log("open url: " + url); }); 

this gets triggered in mac os, not in windows. there event or different way in windows?

this mac-only feature. closest alternative app.makesingleinstance(callback).

you can arrange app launched url argument: myapp my-scheme://stuff

then callback called url in whichever app process launched first.


Comments

Popular posts from this blog

gridview - Yii2 DataPorivider $totalSum for a column -

java - Suppress Jboss version details from HTTP error response -

Sass watch command compiles .scss files before full sftp upload -