aboutsummaryrefslogtreecommitdiffstats
path: root/ethereal/assets/qml/webapp.qml
diff options
context:
space:
mode:
Diffstat (limited to 'ethereal/assets/qml/webapp.qml')
-rw-r--r--ethereal/assets/qml/webapp.qml8
1 files changed, 6 insertions, 2 deletions
diff --git a/ethereal/assets/qml/webapp.qml b/ethereal/assets/qml/webapp.qml
index 15177e3fd..a848adf45 100644
--- a/ethereal/assets/qml/webapp.qml
+++ b/ethereal/assets/qml/webapp.qml
@@ -31,9 +31,13 @@ ApplicationWindow {
//text: webview.url
Keys.onReturnPressed: {
+ var uri = this.text;
+ if(!/.*\:\/\/.*/.test(uri)) {
+ uri = "http://" + uri;
+ }
+
var reg = /(^https?\:\/\/(?:www\.)?)([a-zA-Z0-9_\-]*\.eth)(.*)/
- var uri = this.text;
if(reg.test(uri)) {
this.text.replace(reg, function(match, pre, domain, path) {
uri = pre;
@@ -45,7 +49,7 @@ ApplicationWindow {
}
if(ip.length != 0) {
- uri += ip.join(".");
+ uri += lookup;
} else {
uri += domain;
}