Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Update manifest.json to allow rikaikun to work in srcdoc iframes. (
#411) Documented here: https://developer.chrome.com/docs/extensions/mv3/content_scripts/ but that page doesn't mention srcdoc. Essentially srcdoc is a way to inject html into an iframe and as such it doesn't have a `src` attribute. In this case, chrome treats the `src` attribute as `about:blank` which means without this option these types of frames won't have rikaikun injected into them. This stackoverflow is a great overview and also implies that the documentation used to be better: https://stackoverflow.com/questions/41408936/can-anyone-explain-that-what-is-the-use-of-match-about-blank-in-chrome-extensi Inspired by birchill/10ten-ja-reader@946b3aa Fixes #410
- Loading branch information