webframe-zoom.html 237 B

12345678910
  1. <html>
  2. <body>
  3. <script type="text/javascript" charset="utf-8">
  4. const {ipcRenderer, webFrame} = require('electron')
  5. webFrame.setZoomLevel(1.0)
  6. ipcRenderer.send('temporary-zoom-set', webFrame.getZoomLevel())
  7. </script>
  8. </body>
  9. </html>