Closed AlbertGom closed 3 months ago
Changed how staticAsset function is searching for the script to resolve the assets path.
staticAsset
The function is only searching for scripts that end with "webchat.botonic.js" so if the webchat file has another name it won't work.
Change the query done in the function to check that the script contains "webchat.botonic.js"
Added unit tests to test the function.
Description
Changed how
staticAsset
function is searching for the script to resolve the assets path.Context
The function is only searching for scripts that end with "webchat.botonic.js" so if the webchat file has another name it won't work.
Approach taken / Explain the design
Change the query done in the function to check that the script contains "webchat.botonic.js"
To document / Usage example
Testing
Added unit tests to test the function.