Hi knubbilito,
I’m also developing on Godot (also exporting to HTML5 like your game, except I host it myself).
AFAIK, there’s no need to control the pausing of the game when you minimize the window – it just does it automatically (at least it does in mine).
Best regards, Butch