From: Alexander Butenko Date: Sun, 22 May 2011 14:54:56 +0000 (+0200) Subject: Pass through javascript: URIS from the command line X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cd7522ef7f8dd5f857b8bba060db6a1c2ad41923;p=midori Pass through javascript: URIS from the command line --- diff --git a/midori/main.c b/midori/main.c index 595439e4..15e25d85 100644 --- a/midori/main.c +++ b/midori/main.c @@ -1561,6 +1561,8 @@ midori_prepare_uri (const gchar *uri) if (g_path_is_absolute (uri)) return g_filename_to_uri (uri, NULL, NULL); + else if (g_str_has_prefix(uri, "javascript:")) + return g_strdup (uri); else if (g_file_test (uri, G_FILE_TEST_EXISTS | G_FILE_TEST_IS_REGULAR)) { gchar* current_dir = g_get_current_dir ();