mirror of
https://github.com/containous/traefik.git
synced 2025-10-26 07:33:18 +03:00
Fix blank webui on some browsers
This commit is contained in:
committed by
GitHub
parent
c5b4e589ff
commit
fc7002fbab
@@ -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)
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user