changeset 7:c89423660272

Fixed execute of 'go' cmd to work in all cases.
author Atul Varma <varmaa@toolness.com>
date Fri, 27 Mar 2009 16:43:18 -0700
parents e077838df525
children abe54fcda16c
files chromeless-browsing/chromeless.js
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/chromeless-browsing/chromeless.js	Fri Mar 27 13:56:16 2009 -0700
+++ b/chromeless-browsing/chromeless.js	Fri Mar 27 16:43:18 2009 -0700
@@ -109,7 +109,10 @@
      pblock.innerHTML = result;
    },
    execute: function(theWords) {
-     Utils.openUrlInBrowser(theWords.text);
+     if (theWords.data)
+       Utils.openUrlInBrowser(theWords.data.url);
+     else
+       Utils.openUrlInBrowser(theWords.text);
    }}
 );