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