setZoomMode

Sets the zoom mode for this web contents.

  • default - Zoom changes are handled automatically on a per-origin basis. Other webContents navigated to the same origin will share the same zoom level.

  • isolated - Zoom changes are handled automatically but on a per-webContents basis. This webContents will not be affected by zoom changes in other webContents, and vice versa.

  • manual - Automatic zoom handling is disabled. The zoom-changed event will still be dispatched, but the page will not actually be zoomed. The zoom level can be managed manually by the application.

  • disabled - All zooming in this webContents is disabled. The webContents will revert to the default zoom level and all zoom changes will be ignored.

The isolated and manual zoom modes persist across navigations.