Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not rendering at all #6

Open
EmeraldSpecter opened this issue Sep 12, 2024 · 1 comment
Open

Not rendering at all #6

EmeraldSpecter opened this issue Sep 12, 2024 · 1 comment

Comments

@EmeraldSpecter
Copy link

Screenshot 2024-09-12 at 10 59 39 AM

I've got the code to my js file linked and the error I am receiving is above. It isn't rendering the sheet at all. Any ideas?

@silentjames
Copy link
Owner

@EmeraldSpecter hello!
I also see this message from time to time, and don't know how to fix it =
I suppose it happens because the script starts running before the statblock is finally rendered, so the script can't get class name.

The JS script in the beginning has line like
sleep(160).then(() => {

That's suppose to be a delay before the script starts running - and I'm trying to find a perfect timing between the moment when the statblock is loaded and when the script starts.

You can try to increase this number (160 is in milliseconds) and check what's going on!

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

No branches or pull requests

2 participants