Skip to content

Commit

Permalink
[Info Saver] Open external links in default web browser
Browse files Browse the repository at this point in the history
  • Loading branch information
CodingWonders committed Oct 9, 2024
1 parent ed2873d commit 19a6309
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Panels/Get_Ops/InfoSave/InfoSaveResults.vb
Original file line number Diff line number Diff line change
Expand Up @@ -172,4 +172,11 @@ Public Class InfoSaveResults
End Try
End If
End Sub

Private Sub WebBrowser1_Navigated(sender As Object, e As WebBrowserNavigatedEventArgs) Handles WebBrowser1.Navigated
If e.Url.AbsoluteUri.StartsWith("http", StringComparison.OrdinalIgnoreCase) Or e.Url.AbsoluteUri.StartsWith("ftp", StringComparison.OrdinalIgnoreCase) Then
Process.Start(e.Url.AbsoluteUri)
WebBrowser1.Navigate("file:///" & Application.StartupPath.Replace("\", "/").Trim() & "/report.html")
End If
End Sub
End Class

0 comments on commit 19a6309

Please sign in to comment.