michangarrito/apps/backend/node_modules/@react-native/debugger-shell/dist/electron/preload.js
rckrdmrd 97f407c661 [MIGRATION-V2] feat: Migrar michangarrito a estructura v2
- Prefijo v2: MCH
- TRACEABILITY-MASTER.yml creado
- Listo para integracion como submodulo

Workspace: v2.0.0 | SIMCO: v4.0.0
2026-01-10 11:28:54 -06:00

32 lines
952 B
JavaScript

"use strict";
const { contextBridge, ipcRenderer } = require("electron");
contextBridge.executeInMainWorld({
func: (ipcDevTools) => {
let didDecorateInspectorFrontendHostInstance = false;
globalThis.reactNativeDecorateInspectorFrontendHostInstance = (
InspectorFrontendHostInstance,
) => {
didDecorateInspectorFrontendHostInstance = true;
InspectorFrontendHostInstance.bringToFront = () => {
ipcDevTools.bringToFront();
};
};
document.addEventListener("DOMContentLoaded", () => {
if (!didDecorateInspectorFrontendHostInstance) {
console.error(
"reactNativeDecorateInspectorFrontendHostInstance was not called at startup. " +
"This version of the DevTools frontend may not be compatible with @react-native/debugger-shell.",
);
}
});
},
args: [
{
bringToFront() {
ipcRenderer.send("bringToFront");
},
},
],
});