Removed the path type

This commit is contained in:
Devine Lu Linvega
2019-07-16 14:14:06 +09:00
parent ed406ca1ed
commit 7d009e266d
6 changed files with 1815 additions and 29 deletions

View File

@@ -92,12 +92,12 @@ function Ronin () {
const file = e.dataTransfer.files[0]
if (!file || !file.name) { console.warn('File', 'Not a valid file.'); return }
const path = file.path ? file.path : file.name
if (path.indexOf('.lisp') > -1) {
this.source.read(path)
this.commander.show()
} else if (file.path) {
if (this.commander.canInject()) {
this.commander.injectPath(file.path)
this.commander.show()
} else if (path.indexOf('.lisp') > -1) {
this.source.read(path)
this.commander.show()
}
}
}