Skip to content

Commit 8b9ed0e

Browse files
committed
Expose Typesense in window
1 parent d6a10a3 commit 8b9ed0e

File tree

6 files changed

+17
-13
lines changed

6 files changed

+17
-13
lines changed

dist/typesense.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/typesense.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/typesense.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/typesense.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

doc/examples/browser/search.html

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,17 @@ <h1>Typesense Browser Demo</h1>
3030
'port': '8108',
3131
'protocol': 'http'
3232
},
33-
{
34-
'host': 'localhost',
35-
'port': '7108',
36-
'protocol': 'http'
37-
},
38-
{
39-
'host': 'localhost',
40-
'port': '9108',
41-
'protocol': 'http'
42-
}],
33+
// {
34+
// 'host': 'localhost',
35+
// 'port': '7108',
36+
// 'protocol': 'http'
37+
// },
38+
// {
39+
// 'host': 'localhost',
40+
// 'port': '9108',
41+
// 'protocol': 'http'
42+
// }
43+
],
4344
'apiKey': 'xyz',
4445
'numRetries': 3, // A total of 4 tries (1 original try + 3 retries)
4546
'connectionTimeoutSeconds': 10,

webpack.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ module.exports = (env, argv) => {
2626
argv && argv.mode === "production" ? ".min" : ""
2727
}.js`,
2828
path: path.resolve(__dirname, "dist"),
29+
library: "Typesense",
2930
},
3031
devtool: "source-map",
3132
};

0 commit comments

Comments
 (0)