Mercurial > my-ubiquity-commands
comparison chromeless-browsing/chromeless.js @ 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 | 96bb8d08e94a |
children | abe54fcda16c |
comparison
equal
deleted
inserted
replaced
6:e077838df525 | 7:c89423660272 |
---|---|
107 } else | 107 } else |
108 result = "Takes you to " + Utils.escapeHtml(theWords.text) + "."; | 108 result = "Takes you to " + Utils.escapeHtml(theWords.text) + "."; |
109 pblock.innerHTML = result; | 109 pblock.innerHTML = result; |
110 }, | 110 }, |
111 execute: function(theWords) { | 111 execute: function(theWords) { |
112 Utils.openUrlInBrowser(theWords.text); | 112 if (theWords.data) |
113 Utils.openUrlInBrowser(theWords.data.url); | |
114 else | |
115 Utils.openUrlInBrowser(theWords.text); | |
113 }} | 116 }} |
114 ); | 117 ); |
115 | 118 |
116 function cmd_show_tabs() { | 119 function cmd_show_tabs() { |
117 var content = context.chromeWindow.document.getElementById("appcontent"); | 120 var content = context.chromeWindow.document.getElementById("appcontent"); |