diff options
-rw-r--r-- | src/web-view-schemes/normal.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/web-view-schemes/normal.c b/src/web-view-schemes/normal.c index f6344f8..c4d42b8 100644 --- a/src/web-view-schemes/normal.c +++ b/src/web-view-schemes/normal.c @@ -76,16 +76,8 @@ static gchar * rewrite_uri(MqWebView G_GNUC_UNUSED *web_view, MqWebViewScheme G_GNUC_UNUSED *scheme, const gchar *uri) { - gchar *rw_uri; - gchar *query; - if (g_str_has_prefix(uri, "about:")) { - rw_uri = g_strconcat("mq-about:", uri + strlen("about:"), NULL); - query = strchr(rw_uri, '?'); - if (query) { - query[0] = '\0'; - } - return rw_uri; + return g_strconcat("mq-about:", uri + strlen("about:"), NULL); } else { return g_strdup(uri); } |