Timer with jQuery #1280
-
Heyall So I'm making a timer that runs down every 10ms.
The HTML editor runs an error: "undefined is not a function." The timer runs as the number of errors increase exponentially. Any ideas? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 9 replies
-
I can't see anything in the code that would generate that error; and pasting the exact code you provided into my own game works fine (no errors, nothing in the console). Is it possible the error is somewhere else? |
Beta Was this translation helpful? Give feedback.
-
Is the problem I have the same issue when I post this into a fresh game in the 5.8 desktop player. Yep. It works in the testing build (with the updated browser).
EDIT Try adding this line as the first line in your script (as long as it's before
That fixes it for me in the Quest 5.8.0 desktop player (the official release). |
Beta Was this translation helpful? Give feedback.
Is the problem
padStart
? Because the desktop player's browser is so old?I have the same issue when I post this into a fresh game in the 5.8 desktop player.
Yep. It works in the testing build (with the updated browser).
padStart
wasn't born yet when Quest 5.8's browser was released.EDIT
Try adding this line as the first line in your script (as long as it's before
JS.eval(s)
):That fixes it for me in the Quest 5.8.0 desktop player (the official release).