electron/spec/fixtures/pages/webframe-zoom.html

10 lines
237 B
HTML
Raw Normal View History

2017-02-16 09:56:33 +00:00
<html>
<body>
<script type="text/javascript" charset="utf-8">
const {ipcRenderer, webFrame} = require('electron')
webFrame.setZoomLevel(1.0)
ipcRenderer.send('temporary-zoom-set', webFrame.getZoomLevel())
</script>
</body>
</html>