diff --git a/utils/pas2js/httpcompiler.pp b/utils/pas2js/httpcompiler.pp index 904924ed08..0f6d3e49f5 100644 --- a/utils/pas2js/httpcompiler.pp +++ b/utils/pas2js/httpcompiler.pp @@ -794,7 +794,11 @@ begin httprouter.RegisterRoute('$sys/status',rmGet,@DoStatusRequest); end; if FAPI<>'' then + {$IF FPC_FULLVERSION > 30300} TFPWebFileLocationAPIModule.RegisterFileLocationAPI(ExtractWord(1,FAPI,[',']),ExtractWord(2,FAPI,[','])); + {$ELSE} + Log(etError,'API support missing, Compile with fpc 3.3.1+'); + {$ENDIF} TSimpleFileModule.RegisterDefaultRoute; inherited; end;