mirror of
https://github.com/faisalman/ua-parser-js.git
synced 2025-11-16 07:02:16 +03:00
Create a simple test page in /test
This commit is contained in:
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>
|
||||
Reference in New Issue
Block a user