wip ext file import syntax

This commit is contained in:
jean-emmanuel 2022-01-10 10:40:11 +01:00
parent e11f994b8f
commit 697f3e8acc
3 changed files with 26 additions and 3 deletions

View file

@ -232,7 +232,11 @@ var SessionManager = class SessionManager extends EventEmitter {
var {path, fileContent} = data
this.fragments[path] = new Session(fileContent, 'fragment')
if (path.split('.').pop() == 'json') {
this.fragments[path] = new Session(fileContent, 'fragment')
} else {
this.fragments[path] = fileContent
}
this.trigger('fragment-updated', {path: path})