File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed
examples/ajax-demo/public Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ Or via CDN (no bundler needed):
5555 };
5656 formspree (' initForm' , { formElement: ' #my-form' , formId: ' YOUR_FORM_ID' });
5757 </script >
58- <script src =" https://unpkg.com/@formspree/ajax@1/dist/global.js " defer ></script >
58+ <script src =" https://unpkg.com/@formspree/ajax@1" defer ></script >
5959```
6060
6161See the [ @formspree/ajax README] ( ./packages/formspree-ajax/README.md ) for full documentation.
Original file line number Diff line number Diff line change 11// This file simulates loading dist/global.js in the Vite dev environment.
2- // In production, you'd use: <script src="https://unpkg.com/@formspree/ajax@1/dist/global.js " defer></script>
2+ // In production, you'd use: <script src="https://unpkg.com/@formspree/ajax@1" defer></script>
33import '@formspree/ajax/global' ;
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ <h1>Contact Form <span class="badge">CDN</span></h1>
7171 window.formspree=window.formspree||function(){(formspree.q=formspree.q||[]).push(arguments)};
7272 formspree('initForm', { formElement: '#contact-form', formId: 'YOUR_FORM_ID' });
7373 </script>
74- <script src="https://unpkg.com/@formspree/ajax@1/dist/global.js " defer></script>
74+ <script src="https://unpkg.com/@formspree/ajax@1" defer></script>
7575
7676 In this Vite demo, global.js is loaded via a module entry that aliases to the source.
7777 -->
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ No bundler needed. Add this snippet before the closing `</body>` tag:
2525 };
2626 formspree (' initForm' , { formElement: ' #my-form' , formId: ' YOUR_FORM_ID' });
2727 </script >
28- <script src =" https://unpkg.com/@formspree/ajax@1/dist/global.js " defer ></script >
28+ <script src =" https://unpkg.com/@formspree/ajax@1" defer ></script >
2929```
3030
3131## Quick Start
You can’t perform that action at this time.
0 commit comments