electron/spec/fixtures/pages/window-open-size.html

9 lines
227 B
HTML
Raw Normal View History

<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>