Skip to content

Commit

Permalink
Merge pull request #1140 from pomeh/1139-add-direct-link-to-levels
Browse files Browse the repository at this point in the history
Resolves #1139: can use a direct permalink to a specific level
  • Loading branch information
pcottle committed Apr 24, 2024
2 parents caf480d + d09fc9e commit 03a82ce
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/js/app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 03a82ce

Please sign in to comment.