aboutsummaryrefslogtreecommitdiffstats
path: root/data/lib/skip-bug.js
diff options
context:
space:
mode:
Diffstat (limited to 'data/lib/skip-bug.js')
-rw-r--r--data/lib/skip-bug.js20
1 files changed, 10 insertions, 10 deletions
diff --git a/data/lib/skip-bug.js b/data/lib/skip-bug.js
index da6f606..3639448 100644
--- a/data/lib/skip-bug.js
+++ b/data/lib/skip-bug.js
@@ -3,17 +3,17 @@
// "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];
- }
+ 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];
}
+ }
}
reloadPage();