Skip to content

Commit

Permalink
Changed cliuck behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
500Foods committed Feb 12, 2024
1 parent c9a939f commit b40b69e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Unit1.pas
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ implementation

procedure TForm1.divChartDblClick(Sender: TObject);
begin
window.open('https://www.500foods.com/githubapi/Project1.html?G='+gitHubToken,'_blank');
window.open(window.location.href,'_blank');
end;

function TForm1.GetTrafficData(repo: String): JSValue;
Expand Down Expand Up @@ -177,7 +177,9 @@ procedure TForm1.UpdateCalendar;
begin
{$IFNDEF WIN32}
asm {
pas.Unit1.Form1.NextCalendar = new Date().getUTCDay()
divChart.addEventListener('click', () =>
window.open(window.location.href, '_blank').focus()
);
} end;
{$ENDIF}
end;
Expand Down

0 comments on commit b40b69e

Please sign in to comment.