diff --git a/components/pas2js/pjscontroller.pp b/components/pas2js/pjscontroller.pp index 82cb398076..ea8934fe49 100644 --- a/components/pas2js/pjscontroller.pp +++ b/components/pas2js/pjscontroller.pp @@ -193,7 +193,7 @@ begin aFile:=aProject.Files[I]; if aFile.IsPartOfProject and (aFile.CustomData[PJSIsProjectHTMLFile]='1') then - Result:=aProject.Files[I].GetFullFilename; + Result:=aFile.GetFullFilename; Dec(I); end; end;