Skip to content

Commit

Permalink
fix coi path
Browse files Browse the repository at this point in the history
  • Loading branch information
bugzpodder committed Sep 19, 2023
1 parent 147d7fb commit 8c3ce06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/src/components/PySandboxExample.astro
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ interface Props {
const { code, target, worker, restricted } = Astro.props;
---

<script src="/pysandbox/coi-serviceworker.js" is:inline></script>
<script src="/pysandbox/coi-serviceworker.min.js" is:inline></script>

<style>
:global(
Expand Down Expand Up @@ -101,14 +101,14 @@ const { code, target, worker, restricted } = Astro.props;
restricted: this.dataset.restricted,
});
}
run(this.dataset.code);
} catch (e) {
if (this.dataset.target) {
globalThis.document.getElementById(this.dataset.target).innerText =
String(e);
}
console.error(e);
}
run(this.dataset.code);
}
}

Expand Down

0 comments on commit 8c3ce06

Please sign in to comment.