Skip to content

Conversation

WebReflection
Copy link
Contributor

Description

This MR fixes an issue with not fully resolved URLs as config attribute + it patches the builtins.input function to avoid surprises, using the native js.prompt function as least surprise/solution.

Changes

  • enforced fully qualified url resolution for the config, when it's known
  • patched input so that it's usable as it's common for games to ask for inputs

Checklist

  • I have checked make build works locally.
  • I have created / updated documentation for this change (if applicable).

@WebReflection WebReflection requested a review from ntoll March 11, 2025 08:53
@WebReflection
Copy link
Contributor Author

FYI the failing test case is now working as expected: https://pyscript.com/@agiammarchi/tsa-video-game-copy-copy/latest?files=index.html

The current npm version is https://cdn.jsdelivr.net/npm/@pyscript/core@0.6.39/dist/core.js

@WebReflection WebReflection merged commit b22f384 into pyscript:main Mar 11, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants