Skip to content

Commit

Permalink
Update introduction.mdx
Browse files Browse the repository at this point in the history
I kept getting a `TypeError i is undefined` with the umd version of the script from unpkg. I finally found issue #92 and someone suggested using a different version on unpkg. I tried that and my error was resolved so I made that change in the docs.
  • Loading branch information
stedy authored Mar 4, 2024
1 parent ad290b0 commit 9e5c73a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/introduction.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ Include the CSS file in the `head` section of your page:
Include the JavaScript file before the closing `body` tag, if you're using it with the leaflet, make sure to include it **after** leaflet's javascript file

```html
<!-- Make sure you put this AFtER leaflet.js, when using with leaflet -->
<script src="https://unpkg.com/leaflet-geosearch@3.0.0/dist/geosearch.umd.js"></script>
<!-- Make sure you put this AFTER leaflet.js, when using with leaflet -->
<script src="https://unpkg.com/leaflet-geosearch@latest/dist/bundle.min.js"></script>
```

Now you're ready to use the control or providers. Just remember that your "import" syntax will be a bit different from what the docs are using.
Expand Down

0 comments on commit 9e5c73a

Please sign in to comment.