mirror of
https://github.com/strapi/strapi.git
synced 2025-12-29 16:16:20 +00:00
Merge pull request #2822 from siffash/patch-1
Catch error for auto open Google Chrome with AppleScript
This commit is contained in:
commit
5f48dbfbe2
@ -82,8 +82,7 @@ function startBrowserProcess(browser, url) {
|
||||
});
|
||||
return true;
|
||||
} catch (err) {
|
||||
console.log(err);
|
||||
// Ignore errors.
|
||||
strapi.log.error('Failed to open Google Chrome with AppleScript');
|
||||
}
|
||||
}
|
||||
|
||||
@ -154,4 +153,4 @@ async function openBrowser() {
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = openBrowser;
|
||||
module.exports = openBrowser;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user