Skip to content

Commit

Permalink
fix: script name loaded in example
Browse files Browse the repository at this point in the history
  • Loading branch information
sethk4783 committed Jan 17, 2025
1 parent 95d8950 commit d7c0c2f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/examples.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const template = `
</head>
<body>
{{content}}
<script src="http://localhost:4000/index.umd.js"></script>
<script src="http://localhost:4000/filestack.umd.js"></script>
<script>
{{script}}
</script>
Expand Down Expand Up @@ -73,8 +73,8 @@ app.get('/', (req, res) => {
app.get('/*', (req, res) => {
const requestedPath = req.path;
const promises = [];
if (req.path === '/index.umd.js') {
return readFile(path.join(__dirname, '../build/browser/index.umd.js'))
if (req.path === '/filestack.umd.js') {
return readFile(path.join(__dirname, '../build/browser/filestack.umd.js'))
.then((file) => res.send(file.toString()));
}

Expand Down

0 comments on commit d7c0c2f

Please sign in to comment.