File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -170,13 +170,17 @@ if (config.disguiseFiles) {
170
170
const getActualPath = ( path ) =>
171
171
path . slice ( 0 , path . length - 1 - disguise . length ) ,
172
172
isNotHtml = / \. (? ! h t m l $ ) [ \w - ] + $ / i,
173
- exemptDirs = [ 'github' , 'assets/ico' ] ,
174
173
loaderFile = tryReadFile (
175
174
'../views/dist/pages/misc/deobf/loader.html' ,
176
175
import . meta. url ,
177
176
false
178
177
) ;
179
- let exemptPages = [ 'login' , 'test-shutdown' , 'favicon.ico' ] ;
178
+ let exemptDirs = [ 'assets/ico' ] ,
179
+ exemptPages = [ 'login' , 'test-shutdown' , 'favicon.ico' ] ;
180
+ Object . entries ( externalPages ) . forEach ( ( [ key , value ] ) => {
181
+ if ( 'string' === typeof value ) exemptPages . push ( key ) ;
182
+ else exemptDirs . push ( key ) ;
183
+ } ) ;
180
184
if ( pages . default === 'login' ) exemptPages . push ( '' ) ;
181
185
app . addHook ( 'preHandler' , ( req , reply , done ) => {
182
186
if ( req . params . modified ) return done ( ) ;
You can’t perform that action at this time.
0 commit comments