Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to navigate in Chrome #155

Closed
vidyajejurkar opened this issue Nov 29, 2019 · 1 comment
Closed

Not able to navigate in Chrome #155

vidyajejurkar opened this issue Nov 29, 2019 · 1 comment

Comments

@vidyajejurkar
Copy link

Hi,
I am trying to navigate my app URL as per user requirement I mean if the user is using chrome then my app URL should open in chrome only but I am not able to do the same. on navigating app URL gets open in firefox and same with safari. only if I used firefox it gets open in firefox
Following is my code please need help with the same.

else if (information[1]=="Aborted"){
if(app = 'firefox'){
const open = require('open');
// Opens the image in the default image viewer
(async () => {
/ Specify the app to open in
await open('http://localhost:3001/recharge', {app: 'firefox'});
console.log("in firefox Aborted============")
})();
}
}
else if (information[1]=="Aborted"){
if(app = 'google chrome'){
const open = require('open');
// Opens the image in the default image viewer
(async () => {
// Specify the app to open in
await open('http://localhost:3001/recharge', {app: 'google chrome'});
console.log("in google chrome Aborted============")
})();
}
}
TIA.

@sindresorhus
Copy link
Owner

Not clear what you're trying to achieve here, but it doesn't look like it's a problem with open, so I suggest you try to ask on Stack Overflow or some other support site instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants