From c8030a0f2aaf299f823f8a7dc68e29e69abb102f Mon Sep 17 00:00:00 2001 From: Milan Burda Date: Tue, 17 Jul 2018 09:23:44 +0200 Subject: [PATCH] feat: support chrome:// URLs in default_app (#13575) --- default_app/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/default_app/main.js b/default_app/main.js index 7fdfc7c3fa36..0e93f684875c 100644 --- a/default_app/main.js +++ b/default_app/main.js @@ -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))