Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Docs] Remove Drift chat bot #23802

Merged
merged 3 commits into from
Sep 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion docs/config/_default/params.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ description = "YugabyteDB, the transactional, high-performance database for buil
copyright = "Yugabyte, Inc."
privacy_policy = "https://www.yugabyte.com/privacy-policy/"
kapa_ai = true
drift_snippet = true
search_banner = false
version_menu = "Releases"

Expand Down
28 changes: 0 additions & 28 deletions docs/layouts/partials/hooks/head-end.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,32 +52,4 @@
</script>
{{- end -}}

{{- if .Site.Params.drift_snippet -}}
<script>
!function () {
var t = window.driftt = window.drift = window.driftt || [];
if (!t.init) {
if (t.invoked) return void (window.console && console.error && console.error("Drift snippet included twice."));
t.invoked = !0, t.methods = ["identify", "config", "track", "reset", "debug", "show", "ping", "page", "hide", "off", "on"],
t.factory = function (e) {
return function () {
var n = Array.prototype.slice.call(arguments);
return n.unshift(e), t.push(n), t;
};
}, t.methods.forEach(function (e) {
t[e] = t.factory(e);
}), t.load = function (t) {
var e = 3e5, n = Math.ceil(new Date() / e) * e, o = document.createElement("script");
o.type = "text/javascript", o.async = !0, o.crossorigin = "anonymous", o.src = "https://js.driftt.com/include/" + n + "/" + t + ".js";
var i = document.getElementsByTagName("script")[0];
i.parentNode.insertBefore(o, i);
};
}
}();

drift.SNIPPET_VERSION = '0.3.1';
drift.load('9fp5c8x3476g');
</script>
{{- end -}}

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-mfizz/2.4.1/font-mfizz.min.css">
3 changes: 0 additions & 3 deletions docs/netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -1383,7 +1383,6 @@
https://www.googletagmanager.com/
https://www.gstatic.com/recaptcha/
https://x.clearbitjs.com
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@samiahmedsiddiqui - why has the clearbitjs been removed ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@premkumr We are no longer using Clearbit directly. We integrated it from the different way by which we don't need this URL in our security policy headers.

I found few more instances of clearbit in security headers, if you like I can create a separate PR for that.

Copy link
Contributor Author

@samiahmedsiddiqui samiahmedsiddiqui Sep 5, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@premkumr clearbitjs added back in this PR. I am creating a separate PR to remove clearbit headers.
#23803

https://js.driftt.com/
https://cdn.segment.com/
https://j.6sc.co/
https://cdn.rudderlabs.com/
Expand Down Expand Up @@ -1429,7 +1428,6 @@
https://app.supademo.com/
https://www.google.com/
https://www.youtube.com/
https://js.driftt.com/
;

frame-ancestors 'self'
Expand All @@ -1439,7 +1437,6 @@
;

media-src 'self' 'unsafe-inline'
https://js.driftt.com/conductor/assets/
;
'''
X-Content-Type-Options = "nosniff"
Expand Down