[Samples] fix WebView url filter example
(relative urls produced an exception)
This commit is contained in:
Родитель
1b7c8e1a83
Коммит
264f797dc6
|
@ -94,7 +94,7 @@ namespace Samples
|
|||
forward.Sensitive = wb.CanGoForward;
|
||||
};
|
||||
wb.NavigateToUrl += delegate(object sender, NavigateToUrlEventArgs e) {
|
||||
if (e.Uri.Host.EndsWith("facebook.com")) {
|
||||
if (e.Uri.OriginalString.Contains("facebook.com")) {
|
||||
e.SetHandled ();
|
||||
MessageDialog.ShowMessage ("Loading *.facebook.com overriden");
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче