WebKitView.st
changeset 24 625e16d98a6d
parent 22 547d30334073
child 31 035449621a0c
--- a/WebKitView.st	Mon Jun 20 11:41:45 2011 +0000
+++ b/WebKitView.st	Wed Aug 10 23:43:42 2011 +0000
@@ -187,7 +187,17 @@
 
 updateUrl
 
-    renderer setVariable: #uri to: self url value
+    | u |
+    u := self url value.
+    u first == $/ ifTrue:[
+        u asFilename exists ifTrue:[
+            u := 'file://' , u.
+            self url setValue: u.
+        ]   
+    ].
+
+
+    renderer setVariable: #uri to: u
 
     "Created: / 07-06-2011 / 10:18:07 / Jan Vrany <jan.vrany@fit.cvut.cz>"
 ! !