Skip to content

Commit

Permalink
Copying config file for Vivaldi browser in Mac and Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
andy-portmen committed Aug 7, 2017
1 parent b2b2e9c commit 90711ea
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 5 deletions.
2 changes: 1 addition & 1 deletion host.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
17 changes: 15 additions & 2 deletions linux/app/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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');
});
})));
}))));
17 changes: 15 additions & 2 deletions mac/app/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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');
});
})));
}))));

0 comments on commit 90711ea

Please sign in to comment.