Skip to content

fix: add safety check in prefresh.js to prevent runtime errors#34

Merged
chenjiahan merged 2 commits intomainfrom
fix_runtime_error_1022
Oct 22, 2025
Merged

fix: add safety check in prefresh.js to prevent runtime errors#34
chenjiahan merged 2 commits intomainfrom
fix_runtime_error_1022

Conversation

@chenjiahan
Copy link
Copy Markdown
Member

Summary

Add safety check in prefresh.js to prevent errors when __PREFRESH__ is not available.

For example, creating a Worker in the source code:

new Worker(new URL('./worker.js', import.meta.url));

And there will be an runtime error:

image

@chenjiahan chenjiahan merged commit 183f1de into main Oct 22, 2025
4 checks passed
@chenjiahan chenjiahan deleted the fix_runtime_error_1022 branch October 22, 2025 02:59
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