mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-12-12 08:41:46 -05:00
6 lines
242 B
CoffeeScript
6 lines
242 B
CoffeeScript
|
module.exports =
|
||
|
playDevLevel: ({level, session, course}) ->
|
||
|
shareURL = "#{window.location.origin}/play/#{level.get('type')}-level/#{level.get('slug')}/#{session.id}"
|
||
|
shareURL += "?course=#{course.id}" if course
|
||
|
return shareURL
|