Fix blank webui on some browsers
This commit is contained in:
parent
c5b4e589ff
commit
fc7002fbab
3 changed files with 1 additions and 8 deletions
|
@ -46,7 +46,6 @@
|
|||
import config from '../../../package'
|
||||
import PlatformAuthState from '../platform/PlatformAuthState'
|
||||
import { mapActions, mapGetters } from 'vuex'
|
||||
import semverRegex from 'semver-regex'
|
||||
|
||||
export default {
|
||||
name: 'NavBar',
|
||||
|
@ -55,7 +54,7 @@ export default {
|
|||
...mapGetters('core', { coreVersion: 'version' }),
|
||||
version () {
|
||||
if (!this.coreVersion.Version) return null
|
||||
return semverRegex().test(this.coreVersion.Version)
|
||||
return /^(v?\d+\.\d+)/.test(this.coreVersion.Version)
|
||||
? this.coreVersion.Version
|
||||
: this.coreVersion.Version.substring(0, 7)
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue