Skip to content

Commit

Permalink
fix: playground>append base dir
Browse files Browse the repository at this point in the history
  • Loading branch information
watasuke102 committed Aug 30, 2024
1 parent e67a57b commit f59a2bd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Settlang is a statically-typed programming language that express mutability by w

## Let's try!

Visit [Playground (watasuke102.github.io/settlang)](https://watasuke102.github.io/settlang/) for try playground!
Visit [Playground (watasuke102.github.io/settlang)](https://watasuke102.github.io/settlang/) to try on the playground!

## Example

Expand Down
2 changes: 1 addition & 1 deletion playground_front/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function print(str_ptr, ...args) {
async function init() {
const compiler = await (async () => {
try {
const res = await fetch('/compiler.wasm');
const res = await fetch('/settlang/compiler.wasm');
if (!res.ok || !res.body || res.body instanceof ReadableStream === false) {
output.innerText = 'Failed to load : invalid response';
return null;
Expand Down
3 changes: 3 additions & 0 deletions playground_front/vite.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default {
base: '/settlang',
};

0 comments on commit f59a2bd

Please sign in to comment.