mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-03-14 07:00:01 -04:00
Save our MongoDB oplog
This commit is contained in:
parent
c71975fd40
commit
4458a57771
2 changed files with 4 additions and 2 deletions
|
@ -26,8 +26,9 @@ module.exports = class SimulateTabView extends CocoView
|
|||
onLoaded: ->
|
||||
super()
|
||||
@render()
|
||||
if (document.location.hash is '#simulate' or @options.level.get('type') is 'course-ladder') and not @simulator
|
||||
@startSimulating()
|
||||
# Save our MongoDB oplog!
|
||||
#if (document.location.hash is '#simulate' or @options.level.get('type') is 'course-ladder') and not @simulator
|
||||
# @startSimulating()
|
||||
|
||||
getRenderData: ->
|
||||
ctx = super()
|
||||
|
|
|
@ -427,6 +427,7 @@ module.exports = class PlayLevelView extends RootView
|
|||
|
||||
shouldSimulate: ->
|
||||
return true if @getQueryVariable('simulate') is true
|
||||
return false # Save our MongoDB oplog!
|
||||
stillBuggy = true # Keep this true while we still haven't fixed the zombie worker problem when simulating the more difficult levels on Chrome
|
||||
defaultCores = 2
|
||||
cores = window.navigator.hardwareConcurrency or defaultCores # Available on Chrome/Opera, soon Safari
|
||||
|
|
Loading…
Reference in a new issue