Add support for market:// urls

This commit is contained in:
akshitkrnagpal 2019-06-27 14:57:14 -04:00 committed by Josh Matthews
parent a2b195aff8
commit 027514c3e6
6 changed files with 60 additions and 2 deletions

View file

@ -350,6 +350,9 @@ impl HostTrait for HostCallbacks {
fn on_load_started(&self) {}
fn on_load_ended(&self) {}
fn on_title_changed(&self, _title: String) {}
fn on_allow_navigation(&self, _url: String) -> bool {
true
}
fn on_url_changed(&self, url: String) {
if let Ok(cstr) = CString::new(url.as_str()) {
if let Some(url_update) = self.url_update.0 {