shutdown from store init

This commit is contained in:
oguzhankoral
2026-01-09 01:02:21 +03:00
parent 03b435cf65
commit da35e4c07f
2 changed files with 3 additions and 6 deletions
-5
View File
@@ -58,11 +58,6 @@ onMounted(() => {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const { $intercom } = useNuxtApp() // needed her for initialisation
if (!hostAppStore.isDistributedBySpeckle) {
console.log("document.getElementById('intercom-container')?.remove()")
// window.Intercom('shutdown') // could not shut down in other ways like $intercom.shutdown()
document.getElementById('intercom-container')?.remove()
}
logToSeq('Information', 'DUI3 initialized')
})
+3 -1
View File
@@ -731,8 +731,10 @@ export const useHostAppStore = defineStore('hostAppStore', () => {
(hostAppName.value?.toLowerCase() === 'revit' &&
hostAppVersion.value?.includes('2022')) ||
!isDistributedBySpeckle.value
)
) {
window.Intercom('shutdown') // could not shut down in other ways like $intercom.shutdown()
return
}
// guards against intercom being sometimes slower to init
setTimeout(() => {