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
Post a Comment