Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
viaco2ove opened this issue Oct 10, 2022 · 1 comment

Comments

@viaco2ove
Copy link

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;
	}
};
@samuelmaddock
Copy link
Owner

Do you recall any steps to reproduce this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants