Example #1
0
        public void Login()
        {
            webView.NavigationChanged += (s, e) =>
            {
                if (webView.GetCurrentAddress().StartsWith(@"https://www.humblebundle.com/api"))
                {
                    //webView.GetC
                    webView.Close();
                }

                if (webView.GetCurrentAddress().StartsWith(@"https://www.humblebundle.com/resender"))
                {
                    webView.Navigate(loginUrl);
                }
            };
            webView.DeleteCookies("www.humblebundle.com", "_simpleauth_sess");
            webView.DeleteCookies("www.humblebundle.com", "csrf_cookie");
            webView.Navigate(loginUrl);
            webView.OpenDialog();
        }
Example #2
0
 private FREObject DeleteCookies(FREContext ctx, uint argc, FREObject[] argv)
 {
     _view.DeleteCookies();
     return(FREObject.Zero);
 }