mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-12-03 12:27:19 -05:00
Enable session spectating for WebDev levels
This commit is contained in:
parent
209b7d724e
commit
e929686502
1 changed files with 2 additions and 1 deletions
|
@ -153,7 +153,8 @@ module.exports = class LevelLoader extends CocoClass
|
|||
url += "?course=#{@courseID}" if @courseID
|
||||
|
||||
session = new LevelSession().setURL url
|
||||
session.project = ['creator', 'team', 'heroConfig', 'codeLanguage', 'submittedCodeLanguage', 'state', 'submittedCode'] if @headless
|
||||
if @headless and not @level.isType('web-dev')
|
||||
session.project = ['creator', 'team', 'heroConfig', 'codeLanguage', 'submittedCodeLanguage', 'state', 'submittedCode']
|
||||
@sessionResource = @supermodel.loadModel(session, 'level_session', {cache: false})
|
||||
@session = @sessionResource.model
|
||||
if @opponentSessionID
|
||||
|
|
Loading…
Reference in a new issue