File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,10 +18,20 @@ export default defineNuxtPlugin(() => {
1818
1919 // Hide Intercom UI elements via CSS in case it loads later
2020 const styleId = 'intercom-hide-style'
21- if ( ! document . getElementById ( styleId ) ) {
22- const style = document . createElement ( 'style' )
23- style . id = styleId
24- style . textContent = '#intercom-container, .intercom-lightweight-app, .intercom-namespace { display: none !important; }'
25- document . head . appendChild ( style )
21+ if ( document . getElementById ( styleId ) ) {
22+ return
2623 }
24+
25+ const style = document . createElement ( 'style' )
26+ style . id = styleId
27+ style . textContent = `
28+ .intercom-launcher-frame,
29+ .intercom-lightweight-app,
30+ .intercom-lightweight-app-launcher,
31+ .intercom-launcher-badge-frame,
32+ .intercom-messenger-frame {
33+ display: none !important;
34+ }
35+ `
36+ document . head . appendChild ( style )
2737} )
You canβt perform that action at this time.
0 commit comments