diff options
Diffstat (limited to 'data/lib/queries.js')
-rw-r--r-- | data/lib/queries.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/data/lib/queries.js b/data/lib/queries.js index 066991e..ccb2927 100644 --- a/data/lib/queries.js +++ b/data/lib/queries.js @@ -2,7 +2,7 @@ // http://www.opensource.org/licenses/mit-license.php "use strict"; -function getSelection() { +function getSel() { var text = ""; var selectionObject = window.getSelection(); if (selectionObject.rangeCount > 0) { @@ -64,7 +64,7 @@ function queryInNewTab(text, component, product, equivComps) { * function this.queryInNewTab, and run it. */ function queryForSelection() { - var text = getSelection(); + var text = getSel(); if (!text) { self.postMessage(new Message("GetClipboard", "queryLocal")); } @@ -107,7 +107,7 @@ function queryUpstream(qUpBug) { alert("We don't have constantData.queryUpstreamBug set up!"); return null; } - var text = getSelection(); + var text = getSel(); if (!text) { self .postMessage(new Message("GetClipboard", "queryUpstream")); |