Downloads and loads React DevTools Chrome extension using Electron 41's session.extensions API directly, avoiding the deprecated session.loadExtension used by electron-devtools-installer. Extension is cached in userData after first download. Only loaded when !app.isPackaged.
5 lines
132 B
TypeScript
5 lines
132 B
TypeScript
declare module "unzip-crx-3" {
|
|
function unzipCrx(crxPath: string, outputDir: string): Promise<void>;
|
|
export default unzipCrx;
|
|
}
|