shutdown from store init
This commit is contained in:
@@ -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
@@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user