summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/web-view.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/web-view.c b/src/web-view.c
index b5a2283..3fab3d2 100644
--- a/src/web-view.c
+++ b/src/web-view.c
@@ -79,12 +79,8 @@ uri_cb(MqWebView *web_view, GParamSpec G_GNUC_UNUSED *param_spec)
uri = webkit_web_view_get_uri(WEBKIT_WEB_VIEW(web_view));
- if (g_str_has_prefix(uri, "mq-about:")) {
- web_view->uri = g_strconcat("about:", uri + strlen("mq-about:"),
- NULL);
- } else {
- web_view->uri = g_strdup(uri);
- }
+ web_view->uri = web_view->scheme_methods->display_uri(&web_view->scheme,
+ uri);
g_object_notify_by_pspec(G_OBJECT(web_view),
obj_properties[PROP_DISPLAY_URI]);