How Do I Client Program In Game

How do I…

I am making a game package but I am coding the games in this package separately. How can I run that game from the client?

The location I want is: /games/gamename/index.html and this location will read the file with the client.

What is the expected result

Yesterday I printed a little bit of the game with Electron Builder, and I got closer to the location, but unfortunately it doesn’t give me the command I want.

The closest I can get is the code;

When I encode it with the Networking system that comes with it, it opens Nemo (file manager) from my computer. The other time I managed to open it even once, but not now.

Problem is solved.

Actually there was nothing wrong with the code, sometimes the first game doesn’t open. When I try it in the second game, the code works fine. I think there is something wrong with that game. I’m going to move it to this game engine anyway.