Skip to content

Commit

Permalink
Adjust code and README
Browse files Browse the repository at this point in the history
  • Loading branch information
flevi29 committed Jan 8, 2025
1 parent ce1e53f commit 12c0df8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,7 @@ Usage in an HTML (or alike) file:
```html
<script src='https://cdn.jsdelivr.net/npm/meilisearch@latest/dist/bundles/meilisearch.umd.js'></script>
<script>
// also works with window.MeiliSearch, meilisearch.MeiliSearch, window.meilisearch.MeiliSearch
const client = new MeiliSearch({
const client = new meilisearch.MeiliSearch({
host: 'http://127.0.0.1:7700',
apiKey: 'masterKey',
})
Expand Down
3 changes: 1 addition & 2 deletions tests/env/browser/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@
try {
const UID = "testIndex"

// also works with window.MeiliSearch, meilisearch.MeiliSearch, window.meilisearch.MeiliSearch
const client = new window.MeiliSearch({
const client = new meilisearch.MeiliSearch({
host: 'http://localhost:7700',
apiKey: 'masterKey',
})
Expand Down
3 changes: 1 addition & 2 deletions tests/env/express/public/headers.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
<script src="./index.min.js"></script>
<script>
; (async () => {
// also works with window.MeiliSearch, meilisearch.MeiliSearch, window.meilisearch.MeiliSearch
const client = new MeiliSearch({ host: "http://localhost:7700", apiKey: "masterKey" })
const client = new meilisearch.MeiliSearch({ host: "http://localhost:7700", apiKey: "masterKey" })
const UID = "headers"
const errorDiv = document.createElement("div");
errorDiv.setAttribute("id", "error");
Expand Down
3 changes: 1 addition & 2 deletions tests/env/express/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@
(async () => {
let content = ''
let searchDiv = undefined
// also works with window.MeiliSearch, meilisearch.MeiliSearch, window.meilisearch.MeiliSearch
const client = new MeiliSearch({
const client = new meilisearch.MeiliSearch({
host: 'http://127.0.0.1:7700',
apiKey: 'masterKey',
})
Expand Down

0 comments on commit 12c0df8

Please sign in to comment.