mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-10 11:49:13 +02:00
pastojs: source map: prepend absolute source files with file:// if sourceroot
git-svn-id: trunk@42869 -
This commit is contained in:
parent
aa5b2bb027
commit
0ed305fe31
@ -2273,8 +2273,12 @@ begin
|
||||
MapFilename:=LocalFilename;
|
||||
end;
|
||||
end;
|
||||
if FilenameIsAbsolute(MapFilename) then
|
||||
if FilenameIsAbsolute(MapFilename)
|
||||
and SameText(SrcMapSourceRoot,'file://') then
|
||||
begin
|
||||
// Firefox needs the "file://" schema with every file
|
||||
MapFilename:='file://'+MapFilename;
|
||||
end;
|
||||
{$IFNDEF Unix}
|
||||
// use / as PathDelim
|
||||
if PathDelim<>'/' then
|
||||
|
Loading…
Reference in New Issue
Block a user