changeset 32:3d9788fd69ba

Added check for http:// in Browser#uri=
author unexist
date Fri, 22 Jan 2010 16:13:20 +0100
parents 12b8961eecc0
children 826a6c76754e
files subtly/browser.rb
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/subtly/browser.rb	Fri Jan 22 16:08:46 2010 +0100
+++ b/subtly/browser.rb	Fri Jan 22 16:13:20 2010 +0100
@@ -102,9 +102,10 @@
     ##
 
     def uri=(uri)
-      @webkit.uri  = uri
-      @info.text   = format_status(uri[0..LIMIT])
-      @page.text = "Top"
+      uri         = "http://" + uri unless(uri.include?("http://"))
+      @webkit.uri = uri
+      @info.text  = format_status(uri[0..LIMIT])
+      @page.text  = "Top"
     end # }}}
 
     ## add_keys {{{