Currently we are initiating Tawk in the global scope.
|
(function() { |
|
const s1 = document.createElement('script'); |
|
s1.async = true; |
|
s1.src = 'https://embed.tawk.to/60a117b2185beb22b30dae86/1f5qk953t'; |
|
s1.setAttribute('crossorigin', '*'); |
|
document.head.prepend(s1); |
|
})(); |
|
|
|
window.Tawk_API = window.Tawk_API || {}; |
|
window.Tawk_API.onLoad = function() { |
|
window.Tawk_API.addTags(['Mentor', 'User']); |
|
}; |
|
} |
We should convert it to the React component. Docs
We can get rid of the static tags for now, we will implement it in the right way later.
Currently we are initiating Tawk in the global scope.
find-a-mentor/src/utils/tawk.ts
Lines 19 to 31 in 6753dee
We should convert it to the React component. Docs
We can get rid of the static tags for now, we will implement it in the right way later.