electron/spec/fixtures/pages/zoom-factor.html
2017-02-18 01:41:39 +05:30

8 lines
241 B
HTML

<html>
<body>
<script type="text/javascript" charset="utf-8">
const {ipcRenderer, webFrame} = require('electron')
ipcRenderer.send('webview-parent-zoom-level', webFrame.getZoomFactor(), webFrame.getZoomLevel())
</script>
</body>
</html>