From cd7522ef7f8dd5f857b8bba060db6a1c2ad41923 Mon Sep 17 00:00:00 2001 From: Alexander Butenko Date: Sun, 22 May 2011 16:54:56 +0200 Subject: [PATCH] Pass through javascript: URIS from the command line --- midori/main.c | 2 ++ 1 file changed, 2 insertions(+) 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 (); -- 2.39.5