Skip to content

Commit

Permalink
Update exported runner to support Yarn Spinner 3
Browse files Browse the repository at this point in the history
  • Loading branch information
desplesda committed Nov 30, 2024
1 parent 5235fa1 commit 8e60a30
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 9 deletions.
6 changes: 6 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
},
"dependencies": {
"@popperjs/core": "^2.11.2",
"@protobufjs/base64": "^1.1.2",
"bootstrap": "^5.1.3",
"html-escaper": "^3.0.3",
"jquery": "^3.6.0",
Expand Down
4 changes: 3 additions & 1 deletion src/playground.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ import { escape } from "html-escaper";

import { initialContent } from "./starter-content";

import * as base64 from "@protobufjs/base64";

let editor: monaco.editor.IStandaloneCodeEditor;

let dialogue: yarnspinner.IDialogue;
Expand Down Expand Up @@ -364,7 +366,7 @@ export async function load(initialContentName: string = "default") {
let injectedYarnProgramScript = `
<script>
window.yarnData = {
programData : Uint8Array.from([${programData.toString()}]),
data : "${base64.encode(programData, 0, programData.length)}",
stringTable : ${JSON.stringify(stringTable)}
};
</script>
Expand Down
15 changes: 7 additions & 8 deletions src/runner.html.txt

Large diffs are not rendered by default.

0 comments on commit 8e60a30

Please sign in to comment.