From fe7acc994069fdc3bca19109060a773bcc766ed0 Mon Sep 17 00:00:00 2001 From: Liam Steckler Date: Sun, 14 Jan 2024 13:52:26 -0800 Subject: [PATCH] Add resourceTypes to condition --- .../talkdesk_useragent_rule.json | 26 ++++++++++++------- 1 file changed, 17 insertions(+), 9 deletions(-) diff --git a/talkdesk-useragent-switcher/talkdesk_useragent_rule.json b/talkdesk-useragent-switcher/talkdesk_useragent_rule.json index dcfd42a..3fd4f43 100644 --- a/talkdesk-useragent-switcher/talkdesk_useragent_rule.json +++ b/talkdesk-useragent-switcher/talkdesk_useragent_rule.json @@ -1,13 +1,21 @@ -[{ - "id" : 1, +[ + { + "id": 1, "priority": 1, "action": { - "type": "modifyHeaders", - "requestHeaders": [{ + "type": "modifyHeaders", + "requestHeaders": [ + { "operation": "set", - "header": "user-agent", + "header": "User-Agent", "value": "Mozilla/5.0 (Macintosh; Intel Mac OS X 13_2_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36" - }] - }, - "condition" : {} - }] \ No newline at end of file + } + ] + }, + "condition": { + "resourceTypes": [ + "main_frame" + ] + } + } +] \ No newline at end of file