diff options
author | Matěj Cepl <mcepl@redhat.com> | 2011-09-07 16:59:08 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2011-09-07 17:01:48 +0200 |
commit | b6e4ec64e4d5e4657bbb4e70e5ae19fa6d869a70 (patch) | |
tree | cc5b3cfb789f9858e6b4ce7c8cececbdcd7e1e55 /data/lib/skip-bug.js | |
parent | 1cadc51cc0135b9c4cf338e09c7874e1f49bf61b (diff) | |
download | bugzilla-triage-b6e4ec64e4d5e4657bbb4e70e5ae19fa6d869a70.tar.gz |
Make skipping unimportant pages work again.1.4.7
Skript generating RE was putting too many \/ into it.
New release.
Fixes #115.
Diffstat (limited to 'data/lib/skip-bug.js')
-rw-r--r-- | data/lib/skip-bug.js | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/data/lib/skip-bug.js b/data/lib/skip-bug.js index c909a3e..389eb54 100644 --- a/data/lib/skip-bug.js +++ b/data/lib/skip-bug.js @@ -3,15 +3,12 @@ // "use strict"; function reloadPage() { - var stemURL = 'https://HOSTNAME/show_bug.cgi?id='; var titleElems = document.getElementsByTagName('title'); if (titleElems) { var REArr = new RegExp('[bB]ug\\s+([0-9]+)') .exec(titleElems[0].textContent); - var hostname = document.location.hostname; if (REArr) { - document.location = stemURL.replace('HOSTNAME', hostname) - + REArr[1]; + document.location = '/show_bug.cgi?id=' + REArr[1]; } } } |