MCPcopy Create free account
hub / github.com/codecombat/codecombat / saveScreenshot

Method saveScreenshot

app/views/play/SpectateView.js:367–371  ·  view source on GitHub ↗
(session)

Source from the content-addressed store, hash-verified

365
366 // Throttled
367 saveScreenshot (session) {
368 let screenshot
369 if (!(screenshot = this.surface != null ? this.surface.screenshot() : undefined)) { return }
370 return session.save({ screenshot }, { patch: true, type: 'PUT' })
371 }
372
373 setTeam (team) {
374 if (!_.isString(team)) { team = team != null ? team.team : undefined }

Callers

nothing calls this directly

Calls 1

saveMethod · 0.45

Tested by

no test coverage detected