From 121b52115745cf8daa97346c80e9e04d11d0687c Mon Sep 17 00:00:00 2001 From: Aaron Date: Tue, 12 Mar 2024 07:57:08 -0500 Subject: [PATCH] docs: Mention adding unlisted scripts and pages to `web_accessible_resources` This closes #536 --- docs/entrypoints/unlisted-pages.md | 2 ++ docs/entrypoints/unlisted-scripts.md | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/entrypoints/unlisted-pages.md b/docs/entrypoints/unlisted-pages.md index 7b610978..2461908c 100644 --- a/docs/entrypoints/unlisted-pages.md +++ b/docs/entrypoints/unlisted-pages.md @@ -2,6 +2,8 @@ HTML pages that are bundled and shipped with the extension, but are not included in the manifest. +If you plan on using the page in an iframe, don't forget to add the page to [`web_accessible_resources`](https://developer.chrome.com/docs/extensions/reference/manifest/web-accessible-resources). + ### Examples - Onboarding diff --git a/docs/entrypoints/unlisted-scripts.md b/docs/entrypoints/unlisted-scripts.md index 134122e4..89a2da53 100644 --- a/docs/entrypoints/unlisted-scripts.md +++ b/docs/entrypoints/unlisted-scripts.md @@ -2,7 +2,7 @@ TypeScript files that are bundled and shipped with the extension, but are not included in the manifest. -You are responsible for loading/running these scripts where needed. +You are responsible for loading/running these scripts where needed. If necessary, don't forget to add the script and/or any related stylesheets to [`web_accessible_resources`](https://developer.chrome.com/docs/extensions/reference/manifest/web-accessible-resources). ## Filenames