Skip to content

Commit 2d5fac6

Browse files
authored
Update README.md
1 parent a97e238 commit 2d5fac6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ This is where a new concept comes in. I call it **Engine Detection**. It's a con
3131
<meta charest="utf-8">
3232
<title>Browsengine - TestDrvie</title>
3333

34-
<script type="text/javascript" src="/path/to/Modernizr.js"></script>
34+
<script type="text/javascript" src="/path/to/Modernizr.js"></script> <!-- optional -->
3535
<script type="text/javascript" src="/path/to/browsengine.js"></script>
3636
</head>
3737
<body class="page"> <!-- the class attribute of the {body} tag gets filled up after page load -->
@@ -77,6 +77,7 @@ This is where a new concept comes in. I call it **Engine Detection**. It's a con
7777
/* The `navigator` object now supports `navigator.oscpu` and `navigator.ostitle` non-standard properties - polyfilled (Firefox is the only browser that support `navigator.oscpu` natively */
7878
7979
console.log(navigator.oscpu); // operating system cpu info e.g. "Windows NT 6.1"
80+
console.log(navigator.ostitle); // operating system brand name e.g. "Windows 10 Pro - 64 bits"
8081
</script>
8182
</body>
8283
</html>

0 commit comments

Comments
 (0)