From ac07595ce6978790048d2edf6bc6ef46662d2ce0 Mon Sep 17 00:00:00 2001 From: Artur Sapek Date: Tue, 9 Jan 2024 10:27:29 -0500 Subject: [PATCH] Update README instructions so Vite build works for HTML integration (#1439) * add type="module" to example code * 0.1.8 -> 0.2.0 --- README.md | 4 ++-- wormhole-connect-loader/README.md | 9 +++++---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 41d401b81..1b05a300f 100644 --- a/README.md +++ b/README.md @@ -35,8 +35,8 @@ Include the wormhole connect ```html - - + +
diff --git a/wormhole-connect-loader/README.md b/wormhole-connect-loader/README.md index b716d72c6..1670a5309 100644 --- a/wormhole-connect-loader/README.md +++ b/wormhole-connect-loader/README.md @@ -144,9 +144,9 @@ If you created a config from step 1, [stringify](https://developer.mozilla.org/e ```html - + ``` @@ -156,12 +156,13 @@ Note that the `wormhole-connect` div with your config has to be present _before_ function mount() { const script = document.createElement("script"); script.src = - "https://www.unpkg.com/@wormhole-foundation/wormhole-connect@0.0.12/dist/main.js"; + "https://www.unpkg.com/@wormhole-foundation/wormhole-connect@0.2.0/dist/main.js"; script.async = true; + script.type = "module"; const link = document.createElement("link"); link.href = - "https://www.unpkg.com/@wormhole-foundation/wormhole-connect@0.0.12/dist/main.css"; + "https://www.unpkg.com/@wormhole-foundation/wormhole-connect@0.2.0/dist/main.css"; document.body.appendChild(script); document.body.appendChild(link);