mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-05-09 04:23:01 -05:00
Remove frame-bust, inject testclient flag for iframe embedding
This commit is contained in:
parent
a78a54c920
commit
ba2ecbc808
|
|
@ -38,6 +38,7 @@ https://psim.us/dev
|
|||
<!--[if lte IE 8]><script>document.location.replace('http://pokemonshowdown.com/autodownload/win');</script><![endif]-->
|
||||
|
||||
<!-- head custom -->
|
||||
<script>var Config = {testclient: true};</script>
|
||||
|
||||
<div id="header" class="header">
|
||||
<img class="logo" src="//play.pokemonshowdown.com/pokemonshowdownbeta.png" srcset="//play.pokemonshowdown.com/pokemonshowdownbeta@2x.png 2x" alt="Pokémon Showdown! (beta)" width="146" height="44" /><div class="maintabbarbottom"></div>
|
||||
|
|
@ -110,15 +111,7 @@ https://psim.us/dev
|
|||
<script src="//play.pokemonshowdown.com/data/graphics.js?"></script>
|
||||
|
||||
<script>
|
||||
// framebust - see https://owasp.org/www-pdf-archive/OWASP_AppSec_Research_2010_Busting_Frame_Busting_by_Rydstedt.pdf
|
||||
// should be robust against reflective XSS filters and navigation interception
|
||||
var app;
|
||||
if (self === top) {
|
||||
app = new App();
|
||||
} else {
|
||||
LM.innerHTML += ' IN FRAME<br />Please visit Showdown directly.';
|
||||
top.location = self.location;
|
||||
}
|
||||
var app = new App();
|
||||
</script>
|
||||
|
||||
<script src="//play.pokemonshowdown.com/data/pokedex.js?"></script>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user