Removed the path type
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user