mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-20 15:37:46 +03:00
Don't require urlsToOpen
This commit is contained in:
parent
e35510e928
commit
80f8d92565
@ -332,7 +332,7 @@ class AtomApplication extends EventEmitter {
|
||||
addToLastWindow,
|
||||
env
|
||||
})
|
||||
} else if (urlsToOpen.length > 0) {
|
||||
} else if (urlsToOpen && urlsToOpen.length > 0) {
|
||||
return urlsToOpen.map(urlToOpen => this.openUrl({urlToOpen, devMode, safeMode, env}))
|
||||
} else {
|
||||
// Always open an editor window if this is the first instance of Atom.
|
||||
@ -1135,7 +1135,6 @@ class AtomApplication extends EventEmitter {
|
||||
if (states) {
|
||||
return states.map(state => ({
|
||||
foldersToOpen: state.initialPaths,
|
||||
urlsToOpen: [],
|
||||
devMode: this.devMode,
|
||||
safeMode: this.safeMode
|
||||
}))
|
||||
|
Loading…
Reference in New Issue
Block a user