Skip to content

Instantly share code, notes, and snippets.

@AlabasterAxe
Created March 23, 2022 20:41
Show Gist options
  • Save AlabasterAxe/742b7a1b02d8401422360b8ef1ae3725 to your computer and use it in GitHub Desktop.
Save AlabasterAxe/742b7a1b02d8401422360b8ef1ae3725 to your computer and use it in GitHub Desktop.
Inspect Electron Shared Worker
const { webContents } = require('electron')
let rendererContents = webContents.getAllWebContents().find((x)=>x.getAllSharedWorkers().length > 0);
let sharedWorkerId = rendererContents.getAllSharedWorkers()[0].id;
rendererContents.inspectSharedWorkerById(sharedWorkerId);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment