Skip to content

Commit e783496

Browse files
committed
feature(server) indexOf -> "==="
1 parent edf63b6 commit e783496

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
next();
8484
} else {
8585
isJoin = !url.indexOf(prefix + '/join');
86-
isModules = !url.indexOf(prefix + '/modules.json');
86+
isModules = url === prefix + '/modules.json';
8787

8888
if (url === URL)
8989
url = PATH;

0 commit comments

Comments
 (0)