From: Kevin Sawicki Date: Thu, 4 Feb 2016 18:34:36 +0000 (-0800) Subject: Support opening file: URLs directly X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b74dd43ff564430a54b261688f9cd78dfb46b0b4;p=platform%2Fframework%2Fweb%2Fcrosswalk-tizen.git Support opening file: URLs directly --- diff --git a/atom/browser/default_app/main.js b/atom/browser/default_app/main.js index 0908280..3ec80a6 100644 --- a/atom/browser/default_app/main.js +++ b/atom/browser/default_app/main.js @@ -281,7 +281,7 @@ if (option.file && !option.webdriver) { var file = option.file; var protocol = url.parse(file).protocol; var extension = path.extname(file); - if (protocol === 'http:' || protocol === 'https:') { + if (protocol === 'http:' || protocol === 'https:' || protocol === 'file:') { loadApplicationByUrl(file); } else if (extension === '.html' || extension === '.htm') { loadApplicationByUrl('file://' + path.resolve(file));