Showing
1 changed file
with
5 additions
and
1 deletions
@@ -9,7 +9,11 @@ | @@ -9,7 +9,11 @@ | ||
9 | var arr = []; | 9 | var arr = []; |
10 | window.location.hash.split('/').forEach(function (v, i) { | 10 | window.location.hash.split('/').forEach(function (v, i) { |
11 | if (v.indexOf('=') != -1 && v.indexOf('reportCode') != -1) { | 11 | if (v.indexOf('=') != -1 && v.indexOf('reportCode') != -1) { |
12 | - viewURL = viewURL.replaceAll('reportCode',v.split('=')[1]) | 12 | + try { |
13 | + viewURL = viewURL.replaceAll('reportCode',v.split('=')[1]) | ||
14 | + } catch (e) { | ||
15 | + viewURL = viewURL.replace('reportCode',v.split('=')[1]) | ||
16 | + } | ||
13 | } | 17 | } |
14 | }); | 18 | }); |
15 | 19 |
-
Please register or login to post a comment