mirror of
https://gitlab.com/freepascal.org/fpc/pas2js.git
synced 2025-04-07 13:27:50 +02:00
* Fix detection of push state api
This commit is contained in:
parent
1d57ca0f7e
commit
06ee490db9
@ -1251,7 +1251,8 @@ Var
|
||||
end;
|
||||
|
||||
begin
|
||||
if Result and isDefined(Window) and isDefined(Window.Navigator) then
|
||||
Result:=False;
|
||||
if isDefined(Window) and isDefined(Window.Navigator) then
|
||||
begin
|
||||
ua:=Window.Navigator.userAgent;
|
||||
Result:=Not (
|
||||
@ -1261,9 +1262,9 @@ begin
|
||||
or IsB('Chrome')
|
||||
or isB('Windows Phone')
|
||||
);
|
||||
If Result then
|
||||
Result:=isDefined(Window.history) and isDefined(Window.history);
|
||||
end;
|
||||
If Result then
|
||||
Result:=isDefined(Window.history) and isDefined(Window.history);
|
||||
end;
|
||||
|
||||
{ ---------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user