Skip to content

Commit

Permalink
Do not use branch query param for fetching code snippets from ponyl…
Browse files Browse the repository at this point in the history
…ang/pony-tutorial

since it was meant to be used by ponylang/ponyc

Co-authored-by: Joe Eli McIlvain <[email protected]>
  • Loading branch information
shaedrich and jemc committed May 28, 2024
1 parent 45734bf commit f47d3c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion static/web.js
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@
*/
function fetchSnippet(session, result, snippet_file_name, do_evaluate, evaluateButton) {
session.setValue("// Loading snippet: https://github.com/ponylang/pony-tutorial/blob/main/code-samples/" + snippet_file_name + " ...");
httpRequest("GET", "https://raw.githubusercontent.com/ponylang/pony-tutorial/" + (query.get("branch") ?? "main") + "/code-samples/" + snippet_file_name, null, 200,
httpRequest("GET", "https://raw.githubusercontent.com/ponylang/pony-tutorial/main/code-samples/" + snippet_file_name, null, 200,
function (response) {
session.setValue(response);

Expand Down

0 comments on commit f47d3c7

Please sign in to comment.