diff --git a/host.js b/host.js index 10c4cbf..415c55d 100755 --- a/host.js +++ b/host.js @@ -24,7 +24,7 @@ var files = []; var sprocess = []; var config = { - version: '0.4.6' + version: '0.4.7' }; // closing node when parent process is killed process.stdin.resume(); diff --git a/linux/app/install.js b/linux/app/install.js index e581cab..6679f99 100644 --- a/linux/app/install.js +++ b/linux/app/install.js @@ -126,6 +126,19 @@ function chromium(callback) { callback(); } } +function vivaldi(callback) { + if (ids.chrome.length) { + const loc = path.join( + process.env.HOME, + '.config/vivaldi/NativeMessagingHosts' + ); + manifest(loc, 'chrome', callback); + console.error(' -> Vivaldi Browser is supported'); + } + else { + callback(); + } +} function firefox(callback) { if (ids.firefox.length) { const loc = path.join( @@ -139,9 +152,9 @@ function firefox(callback) { callback(); } } -chrome(() => chromium(() => firefox(() => { +chrome(() => chromium(() => vivaldi(() => firefox(() => { application(() => { console.error(' => Native Host is installed in', dir); console.error('\n\n>>> Application is ready to use <<<\n\n'); }); -}))); +})))); diff --git a/mac/app/install.js b/mac/app/install.js index 5fb9b9e..0003468 100644 --- a/mac/app/install.js +++ b/mac/app/install.js @@ -132,6 +132,19 @@ function chromium(callback) { callback(); } } +function vivaldi(callback) { + if (ids.chrome.length) { + const loc = path.join( + process.env.HOME, + 'Library/Application Support/Vivaldi/NativeMessagingHosts' + ); + manifest(loc, 'chrome', callback); + console.error(' -> Vivaldi Browser is supported'); + } + else { + callback(); + } +} function firefox(callback) { if (ids.firefox.length) { const loc = path.join( @@ -145,9 +158,9 @@ function firefox(callback) { callback(); } } -chrome(() => chromium(() => firefox(() => { +chrome(() => chromium(() => vivaldi(() => firefox(() => { application(() => { console.error(' -> Native Host is installed in', dir); console.error('\n\n>>> Application is ready to use <<<\n\n'); }); -}))); +}))));