Portal_head_v2 file breaks compatibility

We were trying to customize the Customer Portal and found out that portal_head_v2.js file renders many JavaScript libraries useless.

This file overwrites the implementation of native JavaScript classes, undermining the stability and security of ANY JavaScript code that one can add to the portal. In our particular case, we found that the DOMTokenList class is overwritten and is not correctly implemented.

I understand that this can be done for compatibility with older browsers. But our customers use new browsers and we would really love to opt-out of this source of uncertainty and random bugs.

This file was added by FreshDesk, and it’s not possible to not load it. Portal_head_v2 file breaks compatibility

Hey @Vladyslav_Lubenskyi,

Welcome to The Freshworks Developer Community! :tada:

I’ve redirected this to Freshdesk team via support ticket.