projects
/
platform
/
framework
/
web
/
crosswalk-tizen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
312182e
)
Support opening file: URLs directly
author
Kevin Sawicki
<kevinsawicki@gmail.com>
Thu, 4 Feb 2016 18:34:36 +0000
(10:34 -0800)
committer
Kevin Sawicki
<kevinsawicki@gmail.com>
Thu, 4 Feb 2016 18:34:36 +0000
(10:34 -0800)
atom/browser/default_app/main.js
patch
|
blob
|
history
diff --git
a/atom/browser/default_app/main.js
b/atom/browser/default_app/main.js
index
0908280
..
3ec80a6
100644
(file)
--- 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));