mirror of
https://github.com/faisalman/ua-parser-js.git
synced 2025-09-27 16:08:47 +03:00
Create a simple test page in /test
This commit is contained in:
parent
bf31a2c89a
commit
93a11d3c9b
10
test/index.html
Normal file
10
test/index.html
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
<script src="../js/ua-parser.js"></script>
|
||||||
|
<script>
|
||||||
|
try {
|
||||||
|
var result = JSON.stringify(UAParser(), null, "\t");
|
||||||
|
document.write("<pre>" + result + "</pre>");
|
||||||
|
console.log(result);
|
||||||
|
} catch (e) {
|
||||||
|
document.write("Error: " + e);
|
||||||
|
}
|
||||||
|
</script>
|
Loading…
x
Reference in New Issue
Block a user