Skip to content

fix: improve CSS insertion logic to handle document loading state#107

Merged
xiaoluoboding merged 1 commit intoxiaoluoboding:mainfrom
beijixiaohu:main
Feb 22, 2025
Merged

fix: improve CSS insertion logic to handle document loading state#107
xiaoluoboding merged 1 commit intoxiaoluoboding:mainfrom
beijixiaohu:main

Conversation

@beijixiaohu
Copy link
Copy Markdown
Contributor

I've updated the __insertCSSVueSonner function to handle cases where the DOM might not be immediately available. This addresses potential issues in environments like Chrome extensions where content scripts can run before DOM load.

This small change ensures safer CSS insertion across different scenarios without affecting existing functionality.

@vercel
Copy link
Copy Markdown

vercel Bot commented Jan 10, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
vue-sonner ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 10, 2025 6:04am

@xiaoluoboding xiaoluoboding merged commit ada95d7 into xiaoluoboding:main Feb 22, 2025
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