Add config file

This commit is contained in:
2023-04-15 21:11:27 +02:00
parent ca30f12f5a
commit 7c7b3ed561
8 changed files with 59 additions and 14 deletions

View File

@ -18,14 +18,14 @@ using Elwig.Windows;
namespace Elwig.Documents {
public static class Pdf {
private static readonly string CHROMIUM = @"C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe";
private static readonly string Chromium = @"C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe";
private static IBrowser? Browser = null;
public static bool IsReady => Browser != null;
public static async Task Init(Action evtHandler) {
Browser = await Puppeteer.LaunchAsync(new LaunchOptions {
Headless = true,
ExecutablePath = CHROMIUM,
ExecutablePath = Chromium,
});
evtHandler();
}