File tree Expand file tree Collapse file tree
src/Plotly.NET.ImageExport Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,6 +9,12 @@ open System.Text
99open System.Text .RegularExpressions
1010open DynamicObj
1111
12+ module PuppeteerSharpRendererOptions =
13+
14+ let mutable launchOptions = LaunchOptions()
15+
16+ launchOptions.Timeout <- 60000
17+
1218type PuppeteerSharpRenderer () =
1319
1420 /// adapted from the original C# implementation by @ilyalatt : https://github.com/ilyalatt/Plotly.NET.PuppeteerRenderer
@@ -76,9 +82,10 @@ type PuppeteerSharpRenderer() =
7682
7783 let! revision = browserFetcher.DownloadAsync() |> Async.AwaitTask
7884
79- let launchOptions = LaunchOptions()
85+ let launchOptions =
86+ PuppeteerSharpRendererOptions.launchOptions
87+
8088 launchOptions.ExecutablePath <- revision.ExecutablePath
81- launchOptions.Timeout <- 60000
8289
8390 return ! Puppeteer.LaunchAsync( launchOptions) |> Async.AwaitTask
8491 }
You can’t perform that action at this time.
0 commit comments