electron/spec/fixtures/pages/window-open-size.html
Jeff Wear 32e949efed Read window size properly in window.open test
`BrowserWindow#getSize` returns `[width, height]`, not `{width, height}`.
2015-12-02 11:50:44 -08:00

8 lines
227 B
HTML

<html>
<body>
<script type="text/javascript" charset="utf-8">
var size = require('electron').remote.getCurrentWindow().getSize();
window.opener.postMessage('size: ' + size[0] + ' ' + size[1], '*')
</script>
</body>
</html>