mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-12 12:10:02 +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;
|
MapFilename:=LocalFilename;
|
||||||
end;
|
end;
|
||||||
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;
|
MapFilename:='file://'+MapFilename;
|
||||||
|
end;
|
||||||
{$IFNDEF Unix}
|
{$IFNDEF Unix}
|
||||||
// use / as PathDelim
|
// use / as PathDelim
|
||||||
if PathDelim<>'/' then
|
if PathDelim<>'/' then
|
||||||
|
Loading…
Reference in New Issue
Block a user