diff options
Diffstat (limited to 'desktop/sources/scripts/source.js')
-rw-r--r-- | desktop/sources/scripts/source.js | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/desktop/sources/scripts/source.js b/desktop/sources/scripts/source.js index 2d032ed..483d72a 100644 --- a/desktop/sources/scripts/source.js +++ b/desktop/sources/scripts/source.js @@ -60,16 +60,10 @@ function Source (orca, terminal) { this.read = function (path) { fs.readFile(path, 'utf8', function (err, data) { if (err) throw err - if (!terminal.source.validate(data)) { console.warn('Invalid File'); return } terminal.load(data.trim()) }) } - this.validate = function (data) { - // TODO - return true - } - this.name = function () { const parts = this.path.split('/') return parts[parts.length - 1].replace('.orca', '').trim() |