wip ext file import syntax
This commit is contained in:
parent
e11f994b8f
commit
697f3e8acc
3 changed files with 26 additions and 3 deletions
|
|
@ -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})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue