Showing
1 changed file
with
2 additions
and
1 deletions
@@ -19,12 +19,13 @@ const setStatusBar = (width, height, store) => { | @@ -19,12 +19,13 @@ const setStatusBar = (width, height, store) => { | ||
19 | 19 | ||
20 | function getAppVersion(str, split) { | 20 | function getAppVersion(str, split) { |
21 | const match = str.match(new RegExp('(^|)app_version=([^' + split + ']*)(' + split + '|$)')); | 21 | const match = str.match(new RegExp('(^|)app_version=([^' + split + ']*)(' + split + '|$)')); |
22 | + | ||
22 | return match && match.length ? match[2] : ''; | 23 | return match && match.length ? match[2] : ''; |
23 | } | 24 | } |
24 | 25 | ||
25 | const appVersion = getAppVersion(document.cookie, ';') || getAppVersion(location.href, '&'); | 26 | const appVersion = getAppVersion(document.cookie, ';') || getAppVersion(location.href, '&'); |
26 | 27 | ||
27 | - if (version(appVersion,' 6.9.2') >= 0) { | 28 | + if (version(appVersion, '6.9.2') >= 0) { |
28 | statusBar.statusBarStatus = true; | 29 | statusBar.statusBarStatus = true; |
29 | store && store.commit('SET_STATUS_BAR_STATUS', {status: true}); | 30 | store && store.commit('SET_STATUS_BAR_STATUS', {status: true}); |
30 | } | 31 | } |
-
Please register or login to post a comment