feat: support chrome:// URLs in default_app (#13575)

This commit is contained in:
Milan Burda 2018-07-17 09:23:44 +02:00 committed by Samuel Attard
parent c313fd614c
commit c8030a0f2a

View file

@ -320,7 +320,7 @@ if (option.file && !option.webdriver) {
const file = option.file const file = option.file
const protocol = url.parse(file).protocol const protocol = url.parse(file).protocol
const extension = path.extname(file) const extension = path.extname(file)
if (protocol === 'http:' || protocol === 'https:' || protocol === 'file:') { if (protocol === 'http:' || protocol === 'https:' || protocol === 'file:' || protocol === 'chrome:') {
loadApplicationByUrl(file) loadApplicationByUrl(file)
} else if (extension === '.html' || extension === '.htm') { } else if (extension === '.html' || extension === '.htm') {
loadApplicationByUrl('file://' + path.resolve(file)) loadApplicationByUrl('file://' + path.resolve(file))