Skip to content

Commit

Permalink
fix small issues
Browse files Browse the repository at this point in the history
- platform recognition
- forgetting that .text() is async
  • Loading branch information
Varrience authored Jan 24, 2025
1 parent 829aab8 commit eab6f23
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Pages/projects/project.html
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
khan: "Khan Academy",
scratch: "Scratch",
embed: "Unknown",
js: "JavaScript",
wk: "Watermelon Katana",
swf: "Flash"
}[data.platform]
}</a>
Expand Down Expand Up @@ -132,7 +132,7 @@
const sanitizeDimensions = /auto|fit-content|inherit|initial|(?:min|max)-content|revert-layer|unset|\d+.{0,2}/;
const config = {title: "JS Game", main: "index.js", style: "position: fixed; top: 0px; left: 0px"};
let setup = await fetch(data.link);
setup = setup.text();
setup = await setup.text();
let configProperty;
while((configProperty = configPattern.exec(setup)) !== null) {
config[configProperty[1]] = configProperty[2];
Expand Down

0 comments on commit eab6f23

Please sign in to comment.