mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-03-21 17:50:29 -05:00
This adds the BOM to all HTTP pages as per the HTML5 spec and ensures all pages use UTF-8 as their meta charset (which is still kept for compatibility with older browsers).
18 lines
383 B
HTML
18 lines
383 B
HTML
<!DOCTYPE html>
|
|
<meta charset="UTF-8" />
|
|
<script>
|
|
var gui = require('nw.gui');
|
|
var win = gui.Window.get();
|
|
|
|
if (process.platform === 'darwin') {
|
|
var gui = require('nw.gui');
|
|
var mb = new gui.Menu({type:"menubar"});
|
|
mb.createMacBuiltin("Pokemon Showdown");
|
|
win.menu = mb;
|
|
}
|
|
|
|
win.maximize();
|
|
win.show();
|
|
document.location.replace('https://play.pokemonshowdown.com/');
|
|
</script>
|