Resolves #1139: can use a direct permalink to a specific level

This commit is contained in:
Romain Guerin 2024-04-24 10:09:37 +00:00
parent caf480d956
commit d09fc9e3c3

View file

@ -237,6 +237,10 @@ var initDemo = function(sandbox) {
'levels'
];
commands = commands.join(';#').split('#'); // hax
} else if (params.hasOwnProperty('level')) {
commands = [
'level ' + unescape(params.level),
];
} else if (params.gist_level_id) {
$.ajax({
url: 'https://api.github.com/gists/' + params.gist_level_id,