mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 10:06:08 -05:00
Merge branch 'master' of https://github.com/codecombat/codecombat
This commit is contained in:
commit
3ea4439fc1
2 changed files with 7 additions and 3 deletions
|
@ -207,7 +207,12 @@ module.exports = class Simulator
|
|||
transpileSpell: (thang, spellKey, methodName) ->
|
||||
slugifiedThangID = _.string.slugify thang.id
|
||||
source = @currentUserCodeMap[[slugifiedThangID,methodName].join '/'] ? ""
|
||||
@spells[spellKey].thangs[thang.id].aether.transpile source
|
||||
aether = @spells[spellKey].thangs[thang.id].aether
|
||||
try
|
||||
aether.transpile source
|
||||
catch e
|
||||
console.log "Couldn't transpile #{spellKey}:\n#{source}\n", e
|
||||
aether.transpile ''
|
||||
|
||||
createAether: (methodName, method) ->
|
||||
aetherOptions =
|
||||
|
|
|
@ -47,8 +47,7 @@ setupExpressMiddleware = (app) ->
|
|||
app.use(express.bodyParser())
|
||||
app.use(express.methodOverride())
|
||||
app.use(express.cookieSession({secret:'defenestrate'}))
|
||||
if config.isProduction
|
||||
app.use(express.compress())
|
||||
#app.use(express.compress()) if config.isProduction # just let Cloudflare do it
|
||||
|
||||
setupPassportMiddleware = (app) ->
|
||||
app.use(authentication.initialize())
|
||||
|
|
Loading…
Reference in a new issue