#pragma warning disable private void RunScript(string Name, params object[] Args) { try { Dispatcher.Invoke(() => { try { MainBrowser.InvokeScript(Name, Args); } catch { Clear(); } }); } catch { } }