From 284cc142f9bae029bc0feb42e90ce3408f497e6a Mon Sep 17 00:00:00 2001 From: Ehsan Akhgari Date: Fri, 18 Feb 2011 19:33:22 -0500 Subject: Use the range count instead of the selection text --- data/js/bug-page-mod.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'data/js') diff --git a/data/js/bug-page-mod.js b/data/js/bug-page-mod.js index afb1e1a..3c9b410 100644 --- a/data/js/bug-page-mod.js +++ b/data/js/bug-page-mod.js @@ -67,7 +67,7 @@ function tweakBugzilla(d) { // if they have scrolled the page, in which case we assume that they // are using the page, or if they've selected anything on the page.) if (d.defaultView.scrollY > 0 || - d.defaultView.getSelection() == "") { + d.defaultView.getSelection().rangeCount > 0) { cancelRedirection(); } else { d.location.href = url; -- cgit