Assume 'http://' if adding address without scheme to speed dial
This commit is contained in:
parent
5f790a7217
commit
31885fe2be
1 changed files with 2 additions and 0 deletions
|
@ -210,6 +210,8 @@
|
||||||
|
|
||||||
var url = prompt ("{enter_shortcut_address}", "http://");
|
var url = prompt ("{enter_shortcut_address}", "http://");
|
||||||
if (!url) return false;
|
if (!url) return false;
|
||||||
|
if (url.indexOf ("://") == -1)
|
||||||
|
url = "http://" + url;
|
||||||
|
|
||||||
var name = prompt ("{enter_shortcut_name}", "");
|
var name = prompt ("{enter_shortcut_name}", "");
|
||||||
if (!name) name = "";
|
if (!name) name = "";
|
||||||
|
|
Loading…
Reference in a new issue