summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/web-view.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/web-view.c b/src/web-view.c
index bf8a256..dea0ac5 100644
--- a/src/web-view.c
+++ b/src/web-view.c
@@ -395,14 +395,8 @@ mq_web_view_load_uri(MqWebView *web_view, const gchar *uri)
}
web_view->uri = g_strdup(uri);
- if (g_str_has_prefix(uri, "about:")) {
- rw_uri = web_view->scheme_methods->rewrite_uri(
- web_view, &web_view->scheme, web_view->uri);
- webkit_web_view_load_uri(WEBKIT_WEB_VIEW(web_view), rw_uri);
- g_free(rw_uri);
- } else {
- webkit_web_view_load_uri(WEBKIT_WEB_VIEW(web_view), uri);
- }
+ mq_web_view_scheme_set_methods(&web_view->scheme_methods,
+ &web_view->scheme, uri);
g_object_notify_by_pspec(G_OBJECT(web_view),
obj_properties[PROP_DISPLAY_URI]);