mirror of
https://github.com/faisalman/ua-parser-js.git
synced 2025-09-27 16:08:47 +03:00
Merge pull request #457 from gyto23/gh-pages-ie11-fix
Fix ie11 arrow function causing not to show browser detection on demo
This commit is contained in:
commit
5af1e70987
@ -325,12 +325,11 @@
|
||||
const paramString = location.search.split('?')[1];
|
||||
if (paramString) {
|
||||
const params = paramString.split('&');
|
||||
const obj = params.reduce((acc, cur, i) => {
|
||||
return params.reduce(function(acc, cur) {
|
||||
const [key, value] = cur.includes('=') ? cur.split('=') : [cur, null];
|
||||
acc[key] = value;
|
||||
return acc;
|
||||
}, {});
|
||||
return obj;
|
||||
}
|
||||
return {};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user