зеркало из https://github.com/electron/electron.git
feat: support chrome:// URLs in default_app (#13575)
This commit is contained in:
Родитель
c313fd614c
Коммит
c8030a0f2a
|
@ -320,7 +320,7 @@ if (option.file && !option.webdriver) {
|
|||
const file = option.file
|
||||
const protocol = url.parse(file).protocol
|
||||
const extension = path.extname(file)
|
||||
if (protocol === 'http:' || protocol === 'https:' || protocol === 'file:') {
|
||||
if (protocol === 'http:' || protocol === 'https:' || protocol === 'file:' || protocol === 'chrome:') {
|
||||
loadApplicationByUrl(file)
|
||||
} else if (extension === '.html' || extension === '.htm') {
|
||||
loadApplicationByUrl('file://' + path.resolve(file))
|
||||
|
|
Загрузка…
Ссылка в новой задаче