From 9bf5089c066c912d1f17ffd195676b99aeaf0220 Mon Sep 17 00:00:00 2001 From: Liam Steckler <553265+buckbanzai@users.noreply.github.com> Date: Mon, 20 Feb 2023 12:23:56 -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