I need to add some restriction if my site open in twitter browser conditionally and add some other functionality.
const isTwitterInAppBrowser = () => {
const userAgent = navigator.userAgent || navigator.vendor || window.opera;
return /Twitter/i.test(userAgent);
};`