I am building a chrome extension that captures the screenshot (tab) on clicking, say, a hyperlink. The current tab is not being captured if a new tab opens on click.
Error: Unchecked runtime.lastError: Cannot access contents of url "". Extension manifest must request permission to access this host.
How can I capture the current tab in this scenario (not the new tab)?
For more details, please check this.
Thanks in advance!