smogon / pokemon-showdown

Pokémon battle simulator.
https://pokemonshowdown.com
MIT License
4.77k stars 2.79k forks source link

How to iframe #5215

Closed ezrizhu closed 5 years ago

ezrizhu commented 5 years ago

Hello! How do I iframe the index.html in static so it does't redirect to psim.us in the client side?

KamilaBorowska commented 5 years ago

Could you clarify what you mean by that? What have you tried? I'm trying to understand what are you saying, and still didn't.

Zarel commented 5 years ago

I actually don't think PS even has any iframe-killers at the moment.

ezrizhu commented 5 years ago

Sorry I did not make myself clear. When I start my PS Server, when I connect to the domain name, it redirects to a psim.us because of the document.location.replace in Pokemon-Showdown/server/static/index.html I would like to hide the domain to only show mine server's domain(pokemon.example.com) instead of (pokemon.example.com-80.psim.us). I know that is possible from line 76 of README.md

I tried