Pass through javascript: URIS from the command line
This commit is contained in:
parent
6cc4c9db4e
commit
cd7522ef7f
1 changed files with 2 additions and 0 deletions
|
@ -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 ();
|
||||
|
|
Loading…
Reference in a new issue