I have recently enabled omnichannel in our org. I need to perform some action when an agent accepts a post from the omnichannel widget in the console. To do this I added a hidden custom console component in the console with the below code
But I am getting error for this page:
Uncaught SyntaxError: Invalid or unexpected token
And another error:
unrecognized Content-Security-Policy directive 'reflected-xss'. Failed to load resource: the server responded with a status of 404 (Not Found)
Can anyone let me know why these issues are happening? Thanks in Advance!