From 31885fe2be99fbe7acd78f658e01db8d98b17b16 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Sun, 6 Jun 2010 23:29:08 +0200 Subject: [PATCH] Assume 'http://' if adding address without scheme to speed dial --- data/speeddial-head.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/data/speeddial-head.html b/data/speeddial-head.html index 0f5b51c5..edf89118 100644 --- a/data/speeddial-head.html +++ b/data/speeddial-head.html @@ -210,6 +210,8 @@ var url = prompt ("{enter_shortcut_address}", "http://"); if (!url) return false; + if (url.indexOf ("://") == -1) + url = "http://" + url; var name = prompt ("{enter_shortcut_name}", ""); if (!name) name = ""; -- 2.39.5