feat: publicar/remover tawk.to
This commit is contained in:
parent
5a90dc1570
commit
916838820a
@ -407,37 +407,6 @@
|
||||
<!-- Cookie Consent Banner -->
|
||||
@await Html.PartialAsync("_CookieConsent")
|
||||
|
||||
<script type="text/javascript">
|
||||
var Tawk_API = Tawk_API || {}, Tawk_LoadStart = new Date();
|
||||
(function () {
|
||||
var s1 = document.createElement("script"), s0 = document.getElementsByTagName("script")[0];
|
||||
s1.async = true;
|
||||
s1.src = "https://embed.tawk.to/68f825b20cfb8619514cf42c/1j84l6gqp";
|
||||
s1.charset = "UTF-8";
|
||||
s1.setAttribute("crossorigin", "*");
|
||||
s0.parentNode.insertBefore(s1, s0);
|
||||
})();
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
(function (isPremium) {
|
||||
Tawk_API = Tawk_API || {};
|
||||
var originalOnLoad = Tawk_API.onLoad;
|
||||
Tawk_API.onLoad = function () {
|
||||
if (typeof originalOnLoad === "function") {
|
||||
try { originalOnLoad(); } catch (error) { console.warn("Tawk original onLoad error:", error); }
|
||||
}
|
||||
|
||||
if (isPremium) {
|
||||
if (typeof Tawk_API.showWidget === "function") {
|
||||
Tawk_API.showWidget();
|
||||
}
|
||||
} else if (typeof Tawk_API.hideWidget === "function") {
|
||||
Tawk_API.hideWidget();
|
||||
}
|
||||
};
|
||||
})(@isPremiumUser.ToString().ToLower());
|
||||
</script>
|
||||
|
||||
<!-- Bootstrap 5 JS -->
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user