Skip to content

Commit

Permalink
docs: Fix iframe typos
Browse files Browse the repository at this point in the history
  • Loading branch information
aklinker1 committed May 8, 2024
1 parent 3f78be0 commit c74e530
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/guide/content-script-ui.md
Original file line number Diff line number Diff line change
Expand Up @@ -388,14 +388,14 @@ WXT provides a helper function, [`createIframeUi`](/api/wxt/client/functions/cre
export default defineContentScript({
matches: ['<all_urls>'],

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';
},
});

Expand Down

0 comments on commit c74e530

Please sign in to comment.