mirror of
https://github.com/atom/atom.git
synced 2026-01-23 13:58:08 -05:00
window.path is used everywhere now. Still on the fence about it
This commit is contained in:
@@ -33,10 +33,9 @@ atom.app = new App
|
||||
for name, method of atom.app
|
||||
atom[name] = atom.app[name]
|
||||
|
||||
path = $atomController.path?.toString()
|
||||
if handler = Document.handler path
|
||||
if handler = Document.handler window.path
|
||||
atom.document = new handler
|
||||
atom.document.open path
|
||||
atom.document.open window.path
|
||||
else
|
||||
throw "I DON'T KNOW ABOUT #{path}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user