electron-browser-shell
electron-browser-shell copied to clipboard
Exception: Some pages indicate that the parent frame id cannot be found
packages/electron-chrome-extensions/dist/index.js
change zhe code
const getParentFrameId = frame => {
const parentFrame = frame === null || frame === void 0 ? void 0 : frame.parent;
return parentFrame ? getFrameId(parentFrame) : -1;
};
to
const getParentFrameId = frame => {
try {
const parentFrame = frame === null || frame === void 0 ? void 0 : frame.parent;
return parentFrame ? getFrameId(parentFrame) : -1;
} catch (e) {
console.error(e)
log.error(e)
return -1;
}
};
Do you recall any steps to reproduce this issue?