From eb579144390e7df6f66a267efc13f47539bd72ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Malte=20M=C3=BCns?= Date: Sun, 29 Nov 2020 17:57:04 +0100 Subject: [PATCH] [FIX] Only first trigger working #232 Only the first trigger of type page-url was working. Requests got deleted before checking the second trigger. --- src/lib/triggers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/triggers.js b/src/lib/triggers.js index 3e8b16d0b..2d36ccd4d 100644 --- a/src/lib/triggers.js +++ b/src/lib/triggers.js @@ -160,9 +160,9 @@ class Triggers { const hrefRegExp = new RegExp(condition.value, 'g'); if (request.location.href.match(hrefRegExp)) { self.fire(trigger); + this._requests = []; } }); - this._requests = []; break; case 'time-on-site': if (trigger.timeout) {