Skip to content

Commit d7c0c2f

Browse files
committed
fix: script name loaded in example
1 parent 95d8950 commit d7c0c2f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/examples.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const template = `
3232
</head>
3333
<body>
3434
{{content}}
35-
<script src="http://localhost:4000/index.umd.js"></script>
35+
<script src="http://localhost:4000/filestack.umd.js"></script>
3636
<script>
3737
{{script}}
3838
</script>
@@ -73,8 +73,8 @@ app.get('/', (req, res) => {
7373
app.get('/*', (req, res) => {
7474
const requestedPath = req.path;
7575
const promises = [];
76-
if (req.path === '/index.umd.js') {
77-
return readFile(path.join(__dirname, '../build/browser/index.umd.js'))
76+
if (req.path === '/filestack.umd.js') {
77+
return readFile(path.join(__dirname, '../build/browser/filestack.umd.js'))
7878
.then((file) => res.send(file.toString()));
7979
}
8080

0 commit comments

Comments
 (0)