Browse Source

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

Milan Burda 6 years ago
parent
commit
c8030a0f2a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      default_app/main.js

+ 1 - 1
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))