You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
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.
The text was updated successfully, but these errors were encountered: