| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 2e76cd3 commit 0853730
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -173,7 +173,7 @@ | |||
| 173 | 173 | try { | |
| 174 | 174 | var stats = fs.statSync(requestPath); | |
| 175 | 175 | if (stats && !stats.isDirectory()) { | |
| 176 | - return requestPath; | ||
| 176 | + return fs.realpathSync(requestPath); | ||
| 177 | 177 | } | |
| 178 | 178 | } catch (e) {} | |
| 179 | 179 | return false; | |
@@ -281,6 +281,7 @@ | |||
| 281 | 281 | if (!filename) { | |
| 282 | 282 | throw new Error("Cannot find module '" + request + "'"); | |
| 283 | 283 | } | |
| 284 | + id = filename; | ||
| 284 | 285 | return [id, filename]; | |
| 285 | 286 | } | |
| 286 | 287 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments