From c74e530d4a3fd4aa87c2b7455efc7c1fcf43f58a Mon Sep 17 00:00:00 2001 From: Aaron Date: Wed, 8 May 2024 10:34:25 -0500 Subject: [PATCH] docs: Fix iframe typos --- docs/guide/content-script-ui.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/guide/content-script-ui.md b/docs/guide/content-script-ui.md index 7a61f7fa..0c503e4e 100644 --- a/docs/guide/content-script-ui.md +++ b/docs/guide/content-script-ui.md @@ -388,14 +388,14 @@ WXT provides a helper function, [`createIframeUi`](/api/wxt/client/functions/cre export default defineContentScript({ matches: [''], - async main(ctx) { + main(ctx) { // Define the UI - const ui = await createIframeUi(ctx, { + const ui = createIframeUi(ctx, { page: '/example-iframe.html', position: 'inline', onMount: (wrapper, iframe) => { // Add styles to the iframe like width - iframe.width = 123; + iframe.width = '123'; }, });