Skip to content

Commit

Permalink
calm for now
Browse files Browse the repository at this point in the history
  • Loading branch information
TodePond committed Jan 25, 2025
1 parent c8a0273 commit 9fc82a8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/export.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,14 @@ exportButton.addEventListener('click', () => {

let stdSource = '';
fetch('src/std.js').then(async (response) => {
if (!response.ok) {
console.error('Failed to load stdSource');
return;
}
stdSource = await response.text();
});

export function getStdSource() {
if (!stdSource) throw new Error('stdSource not loaded yet');
return stdSource;
}

Expand Down

0 comments on commit 9fc82a8

Please sign in to comment.