diff --git a/Wino.Mail/Views/ComposePage.xaml.cs b/Wino.Mail/Views/ComposePage.xaml.cs index 989fe529..e2a71e7b 100644 --- a/Wino.Mail/Views/ComposePage.xaml.cs +++ b/Wino.Mail/Views/ComposePage.xaml.cs @@ -334,9 +334,11 @@ namespace Wino.Views private async Task InvokeScriptSafeAsync(string function) { + if (Chromium == null) return string.Empty; + try { - return await Chromium?.ExecuteScriptAsync(function); + return await Chromium.ExecuteScriptAsync(function); } catch (Exception ex) {