Skip to content

Commit 62565bc

Browse files
authored
Update README.md
1 parent f9e6f69 commit 62565bc

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

README.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,14 @@ This is where a new concept comes in. I call it **Engine detection**. It's a con
104104
console.log(window.webpage.device.screen.pixel_density); // device pixel ratio e.g. 2
105105
console.log(window.webpage.device.browser_build); // the engine and browser name e.g. "chromium-blink-opera", "webkit-chrome", "chromium-edgehtml-edge"
106106
console.log(window.webpage.device.type); // the device type e.g. "mobile", "tablet", "desktop" or "tv"
107-
107+
108+
109+
console.log(w.webpage.device.agent.safari_mac); // the browser is safari on a mac book
110+
console.log(w.webpage.device.agent.safari_ios); // the browser is safari on an iphone
111+
console.log(w.webpage.device.agent.chrome_android); // the browser is chrome on an android phone
112+
console.log(w.webpage.device.agent.opera_mobile);
113+
console.log(w.webpage.device.agent.opera_mini);
114+
108115
/* The `navigator` object now supports `navigator.oscpu` non-standard properties - polyfilled (Firefox is the only browser that support `navigator.oscpu` natively */
109116
/* Unfortunately, `navigator.oscpu` has been deprecated on Firefox and will be removed from this library soon */
110117
console.log(window.navigator.oscpu); // operating system cpu info e.g. "Windows NT 6.1"

0 commit comments

Comments
 (0)