Label not updating correctly on HTML

Godot Version 4.3

Hi, i’m making a game about clicking a duck and earning 1 point every time you click it, and recently, i’ve been trying to upload it to itch, so me and my friends can play it, but on HTML, for some reason the label inst updating correctly depending on the variable that stores the ammount of times you clicked the duck. (oh and the duck is just a texture button, if that changes anything)

Here’s the code:

func _on_texture_button_pressed() → void:
number += 1
$Label.text = str(number)
$“…/…/…/AudioStreamPlayer”.play()
$“…/…/…/Camera2D”.screenshake()

Does it work when you play your game locally without exporting to html first?
What do mean it does not update the label text correctly?

It does locally, but not when i export.

It doesn’t update with the var