mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-27 08:28:50 +02:00
Resolves #1139: can use a direct permalink to a specific level
This commit is contained in:
parent
caf480d956
commit
d09fc9e3c3
1 changed files with 4 additions and 0 deletions
|
@ -237,6 +237,10 @@ var initDemo = function(sandbox) {
|
||||||
'levels'
|
'levels'
|
||||||
];
|
];
|
||||||
commands = commands.join(';#').split('#'); // hax
|
commands = commands.join(';#').split('#'); // hax
|
||||||
|
} else if (params.hasOwnProperty('level')) {
|
||||||
|
commands = [
|
||||||
|
'level ' + unescape(params.level),
|
||||||
|
];
|
||||||
} else if (params.gist_level_id) {
|
} else if (params.gist_level_id) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: 'https://api.github.com/gists/' + params.gist_level_id,
|
url: 'https://api.github.com/gists/' + params.gist_level_id,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue