summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sklady/tdd.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/sklady/tdd.js b/sklady/tdd.js
index bc75356..70a8424 100644
--- a/sklady/tdd.js
+++ b/sklady/tdd.js
@@ -39,10 +39,14 @@ var TDD = {
ev.stopPropagation();
},
+ lastRefererNumber: undefined,
detectReferer: function() {
var regex = document.referrer.match(/\d+t(\d+)-\d+\.htm/);
if (regex) {
- return regex[1];
+ if (regex[1] != TDD.lastRefererNumber) {
+ TDD.lastRefererNumber = regex[1];
+ return regex[1];
+ }
}
return undefined;
},