Skip to content
Discussion options

You must be logged in to vote

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)):

JS.eval ("String.prototype.padStart = function(l, pre){return (this.length < l) ? pre + this : this;};")

That fixes it for me in the Quest 5.8.0 desktop player (the official release).

Replies: 2 comments 9 replies

Comment options

You must be logged in to vote
3 replies
@Dragonoftheworld
Comment options

@Dragonoftheworld
Comment options

@KVonGit
Comment options

KVonGit Dec 10, 2024
Collaborator

Comment options

You must be logged in to vote
6 replies
@KVonGit
Comment options

KVonGit Dec 10, 2024
Collaborator

@Dragonoftheworld
Comment options

@KVonGit
Comment options

KVonGit Dec 10, 2024
Collaborator

@Dragonoftheworld
Comment options

@KVonGit
Comment options

KVonGit Dec 10, 2024
Collaborator

Answer selected by Dragonoftheworld
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants