mirror of
https://github.com/faisalman/ua-parser-js.git
synced 2025-09-28 00:18:45 +03:00
prepare for PR to gh-pages
This commit is contained in:
parent
54118335a8
commit
cbd90a176b
22
index.html
22
index.html
@ -326,14 +326,24 @@
|
|||||||
if (paramString) {
|
if (paramString) {
|
||||||
const params = paramString.split('&');
|
const params = paramString.split('&');
|
||||||
const obj = params.reduce((acc, cur, i) => {
|
const obj = params.reduce((acc, cur, i) => {
|
||||||
const [key, value] = cur.includes('=') ? cur.split('=') : [cur, null]
|
const [key, value] = cur.includes('=') ? cur.split('=') : [cur, null];
|
||||||
acc[key] = value
|
acc[key] = value;
|
||||||
return acc
|
return acc;
|
||||||
}, {})
|
}, {});
|
||||||
return obj
|
return obj;
|
||||||
}
|
}
|
||||||
return {}
|
return {};
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
<script type="text/javascript">
|
||||||
|
var _gaq = _gaq || [];
|
||||||
|
_gaq.push(['_setAccount', 'UA-3767301-5']);
|
||||||
|
_gaq.push(['_trackPageview']);
|
||||||
|
(function() {
|
||||||
|
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
|
||||||
|
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
|
||||||
|
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
|
||||||
|
})();
|
||||||
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user