mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-30 13:35:04 +02:00
Correct error handling (#5023)
This commit is contained in:
@@ -25,10 +25,11 @@
|
||||
location,
|
||||
setMetadataLocalStorage
|
||||
} from '@hcengineering/ui'
|
||||
import { connect, versionError } from '../connect'
|
||||
import { connect, disconnect, versionError } from '../connect'
|
||||
|
||||
import { workbenchId } from '@hcengineering/workbench'
|
||||
import workbench from '../plugin'
|
||||
import { onDestroy } from 'svelte'
|
||||
|
||||
const isNeedUpgrade = window.location.host === ''
|
||||
|
||||
@@ -38,6 +39,8 @@
|
||||
setMetadataLocalStorage(workbench.metadata.MobileAllowed, true)
|
||||
mobileAllowed = true
|
||||
}
|
||||
|
||||
onDestroy(disconnect)
|
||||
</script>
|
||||
|
||||
{#if $location.path[0] === workbenchId || $location.path[0] === workbench.component.WorkbenchApp}
|
||||
|
||||
Reference in New Issue
Block a user