Skip to content

Commit c93bd5b

Browse files
freeMode --> tiny fix.
1 parent cfbcfd0 commit c93bd5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TinyExpress.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -978,7 +978,7 @@ class TinyExpress {
978978
if (typeof folder !== 'string' || folder.trim() === '')
979979
throw new TypeError('[freeMode] Expected "folder" to be a non-empty string.');
980980
this.root.use(express.static(folder));
981-
this.root.use(function (req, res, next) {
981+
this.root.use((req, res, next) => {
982982
// Website you wish to allow to connect
983983
res.setHeader('Access-Control-Allow-Origin', '*');
984984

0 commit comments

Comments
 (0)