electron-browser-shell icon indicating copy to clipboard operation
electron-browser-shell copied to clipboard

Exception: Some pages indicate that the parent frame id cannot be found

Open viaco2ove opened this issue 3 years ago • 1 comments

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;
	}
};

viaco2ove avatar Oct 10 '22 02:10 viaco2ove

Do you recall any steps to reproduce this issue?

samuelmaddock avatar Jan 15 '23 00:01 samuelmaddock