Skip to content

Commit c463284

Browse files
committed
feat: hide intercom behind feature flag
1 parent 0b053ce commit c463284

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

docs/src/layouts/components/Intercom.astro

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
<script is:inline>
2+
var isPreview = localStorage.getItem("intercom_preview") === "true";
23
window.intercomSettings = {
34
api_base: "https://api-iam.intercom.io",
45
app_id: "wbadhzkf",
6+
hide_default_launcher: !isPreview,
57
};
68
</script>
79
<script is:inline>

0 commit comments

Comments
 (0)