You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-1
Original file line number
Diff line number
Diff line change
@@ -104,7 +104,14 @@ This is where a new concept comes in. I call it **Engine detection**. It's a con
104
104
console.log(window.webpage.device.screen.pixel_density); // device pixel ratio e.g. 2
105
105
console.log(window.webpage.device.browser_build); // the engine and browser name e.g. "chromium-blink-opera", "webkit-chrome", "chromium-edgehtml-edge"
106
106
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
+
108
115
/* The `navigator` object now supports `navigator.oscpu` non-standard properties - polyfilled (Firefox is the only browser that support `navigator.oscpu` natively */
109
116
/* Unfortunately, `navigator.oscpu` has been deprecated on Firefox and will be removed from this library soon */
110
117
console.log(window.navigator.oscpu); // operating system cpu info e.g. "Windows NT 6.1"
0 commit comments