File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -17,15 +17,14 @@ packageJson('parse-dashboard', 'latest').then(latestPackage => {
17
17
} ) ;
18
18
19
19
function getMount ( req ) {
20
- const url = req . url ;
21
- const originalUrl = req . originalUrl ;
22
- const mountPath = process . env . MOUNT_PATH || '' ;
23
- const mountPathLength = req . originalUrl . length - req . url . length ;
24
- let mountPathLocal = req . originalUrl . slice ( 0 , mountPathLength ) ;
25
- if ( ! mountPathLocal . endsWith ( '/' ) ) {
26
- mountPathLocal += '/' ;
20
+ let url = req . url ;
21
+ let originalUrl = req . originalUrl ;
22
+ var mountPathLength = req . originalUrl . length - req . url . length ;
23
+ var mountPath = req . originalUrl . slice ( 0 , mountPathLength ) ;
24
+ if ( ! mountPath . endsWith ( '/' ) ) {
25
+ mountPath += '/' ;
27
26
}
28
- return mountPath + mountPathLocal ;
27
+ return mountPath ;
29
28
}
30
29
31
30
function checkIfIconsExistForApps ( apps , iconsFolder ) {
You can’t perform that action at this time.
0 commit comments