1- # Platform.js <sup >v1.3.3 </sup >
1+ # Platform.js <sup >v1.3.4 </sup >
22
33<!-- div class="toc-container" -->
44
4141<!-- div -->
4242
4343<h3 id =" platform " ><code >platform</code ></h3 >
44- [ Ⓢ ; ] ( https://github.com/bestiejs/platform.js/blob/1.3.3 /platform.js#L996 " View in source ") [ Ⓣ ; ] [ 1 ]
44+ [ Ⓢ ; ] ( https://github.com/bestiejs/platform.js/blob/1.3.4 /platform.js#L1038 " View in source ") [ Ⓣ ; ] [ 1 ]
4545
4646The platform object.
4747
@@ -52,7 +52,7 @@ The platform object.
5252<!-- div -->
5353
5454<h3 id =" platformdescription " ><code >platform.description</code ></h3 >
55- [ Ⓢ ; ] ( https://github.com/bestiejs/platform.js/blob/1.3.3 /platform.js#L1004 " View in source ") [ Ⓣ ; ] [ 1 ]
55+ [ Ⓢ ; ] ( https://github.com/bestiejs/platform.js/blob/1.3.4 /platform.js#L1046 " View in source ") [ Ⓣ ; ] [ 1 ]
5656
5757The platform description.
5858
@@ -63,9 +63,13 @@ The platform description.
6363<!-- div -->
6464
6565<h3 id =" platformlayout " ><code >platform.layout</code ></h3 >
66- [ Ⓢ ; ] ( https://github.com/bestiejs/platform.js/blob/1.3.3 /platform.js#L1012 " View in source ") [ Ⓣ ; ] [ 1 ]
66+ [ Ⓢ ; ] ( https://github.com/bestiejs/platform.js/blob/1.3.4 /platform.js#L1057 " View in source ") [ Ⓣ ; ] [ 1 ]
6767
6868The name of the browser's layout engine.
69+ <br >
70+ <br >
71+ The list of common layout engines include:<br >
72+ "Blink", "EdgeHTML", "Gecko", "Trident" and "WebKit"
6973
7074---
7175
@@ -74,9 +78,15 @@ The name of the browser's layout engine.
7478<!-- div -->
7579
7680<h3 id =" platformmanufacturer " ><code >platform.manufacturer</code ></h3 >
77- [ Ⓢ ; ] ( https://github.com/bestiejs/platform.js/blob/1.3.3 /platform.js#L1020 " View in source ") [ Ⓣ ; ] [ 1 ]
81+ [ Ⓢ ; ] ( https://github.com/bestiejs/platform.js/blob/1.3.4 /platform.js#L1070 " View in source ") [ Ⓣ ; ] [ 1 ]
7882
7983The name of the product's manufacturer.
84+ <br >
85+ <br >
86+ The list of manufacturers include:<br >
87+ "Apple", "Archos", "Amazon", "Asus", "Barnes & Noble", "BlackBerry",
88+ "Google", "HP", "HTC", "LG", "Microsoft", "Motorola", "Nintendo",
89+ "Nokia", "Samsung" and "Sony"
8090
8191---
8292
@@ -85,9 +95,19 @@ The name of the product's manufacturer.
8595<!-- div -->
8696
8797<h3 id =" platformname " ><code >platform.name</code ></h3 >
88- [ Ⓢ ; ] ( https://github.com/bestiejs/platform.js/blob/1.3.3 /platform.js#L1028 " View in source ") [ Ⓣ ; ] [ 1 ]
98+ [ Ⓢ ; ] ( https://github.com/bestiejs/platform.js/blob/1.3.4 /platform.js#L1086 " View in source ") [ Ⓣ ; ] [ 1 ]
8999
90100The name of the browser/environment.
101+ <br >
102+ <br >
103+ The list of common browser names include:<br >
104+ "Chrome", "Electron", "Firefox", "Firefox for iOS", "IE",
105+ "Microsoft Edge", "PhantomJS", "Safari", "SeaMonkey", "Silk",
106+ "Opera Mini" and "Opera"
107+ <br >
108+ <br >
109+ Mobile versions of some browsers have "Mobile" appended to their name:<br >
110+ eg. "Chrome Mobile", "Firefox Mobile", "IE Mobile" and "Opera Mobile"
91111
92112---
93113
@@ -96,7 +116,7 @@ The name of the browser/environment.
96116<!-- div -->
97117
98118<h3 id =" platformos " ><code >platform.os</code ></h3 >
99- [ Ⓢ ; ] ( https://github.com/bestiejs/platform.js/blob/1.3.3 /platform.js#L1068 " View in source ") [ Ⓣ ; ] [ 1 ]
119+ [ Ⓢ ; ] ( https://github.com/bestiejs/platform.js/blob/1.3.4 /platform.js#L1131 " View in source ") [ Ⓣ ; ] [ 1 ]
100120
101121The name of the operating system.
102122
@@ -107,13 +127,12 @@ The name of the operating system.
107127<!-- div -->
108128
109129<h3 id =" platformparseuanavigatoruseragent " ><code >platform.parse([ua=navigator.userAgent])</code ></h3 >
110- [ Ⓢ ; ] ( https://github.com/bestiejs/platform.js/blob/1.3.3 /platform.js#L253 " View in source ") [ Ⓣ ; ] [ 1 ]
130+ [ Ⓢ ; ] ( https://github.com/bestiejs/platform.js/blob/1.3.4 /platform.js#L253 " View in source ") [ Ⓣ ; ] [ 1 ]
111131
112132Creates a new platform object.
113133
114134#### Arguments
115- 1 . ` [ua=navigator.userAgent] ` * (Object|string)* : The user agent string or <br >
116- <br > context object.
135+ 1 . ` [ua=navigator.userAgent] ` * (Object|string)* : The user agent string or context object.
117136
118137#### Returns
119138* (Object)* : A platform object.
@@ -125,7 +144,7 @@ Creates a new platform object.
125144<!-- div -->
126145
127146<h3 id =" platformprerelease " ><code >platform.prerelease</code ></h3 >
128- [ Ⓢ ; ] ( https://github.com/bestiejs/platform.js/blob/1.3.3 /platform.js#L1036 " View in source ") [ Ⓣ ; ] [ 1 ]
147+ [ Ⓢ ; ] ( https://github.com/bestiejs/platform.js/blob/1.3.4 /platform.js#L1094 " View in source ") [ Ⓣ ; ] [ 1 ]
129148
130149The alpha/beta release indicator.
131150
@@ -136,9 +155,16 @@ The alpha/beta release indicator.
136155<!-- div -->
137156
138157<h3 id =" platformproduct " ><code >platform.product</code ></h3 >
139- [ Ⓢ ; ] ( https://github.com/bestiejs/platform.js/blob/1.3.3 /platform.js#L1044 " View in source ") [ Ⓣ ; ] [ 1 ]
158+ [ Ⓢ ; ] ( https://github.com/bestiejs/platform.js/blob/1.3.4 /platform.js#L1107 " View in source ") [ Ⓣ ; ] [ 1 ]
140159
141160The name of the product hosting the browser.
161+ <br >
162+ <br >
163+ The list of common products include:
164+ <br >
165+ <br >
166+ "BlackBerry", "Galaxy S4", "Lumia", "iPad", "iPod", "iPhone", "Kindle",
167+ "Kindle Fire", "Nexus", "Nook", "PlayBook", "TouchPad" and "Transformer"
142168
143169---
144170
@@ -147,7 +173,7 @@ The name of the product hosting the browser.
147173<!-- div -->
148174
149175<h3 id =" platformtostring " ><code >platform.toString()</code ></h3 >
150- [ Ⓢ ; ] ( https://github.com/bestiejs/platform.js/blob/1.3.3 /platform.js#L601 " View in source ") [ Ⓣ ; ] [ 1 ]
176+ [ Ⓢ ; ] ( https://github.com/bestiejs/platform.js/blob/1.3.4 /platform.js#L610 " View in source ") [ Ⓣ ; ] [ 1 ]
151177
152178Returns ` platform.description ` when the platform object is coerced to a string.
153179
@@ -161,7 +187,7 @@ Returns `platform.description` when the platform object is coerced to a string.
161187<!-- div -->
162188
163189<h3 id =" platformua " ><code >platform.ua</code ></h3 >
164- [ Ⓢ ; ] ( https://github.com/bestiejs/platform.js/blob/1.3.3 /platform.js#L1052 " View in source ") [ Ⓣ ; ] [ 1 ]
190+ [ Ⓢ ; ] ( https://github.com/bestiejs/platform.js/blob/1.3.4 /platform.js#L1115 " View in source ") [ Ⓣ ; ] [ 1 ]
165191
166192The browser's user agent string.
167193
@@ -172,7 +198,7 @@ The browser's user agent string.
172198<!-- div -->
173199
174200<h3 id =" platformversion " ><code >platform.version</code ></h3 >
175- [ Ⓢ ; ] ( https://github.com/bestiejs/platform.js/blob/1.3.3 /platform.js#L1060 " View in source ") [ Ⓣ ; ] [ 1 ]
201+ [ Ⓢ ; ] ( https://github.com/bestiejs/platform.js/blob/1.3.4 /platform.js#L1123 " View in source ") [ Ⓣ ; ] [ 1 ]
176202
177203The browser/environment version.
178204
@@ -189,7 +215,7 @@ The browser/environment version.
189215<!-- div -->
190216
191217<h3 id =" platformosarchitecture " ><code >platform.os.architecture</code ></h3 >
192- [ Ⓢ ; ] ( https://github.com/bestiejs/platform.js/blob/1.3.3 /platform.js#L1076 " View in source ") [ Ⓣ ; ] [ 1 ]
218+ [ Ⓢ ; ] ( https://github.com/bestiejs/platform.js/blob/1.3.4 /platform.js#L1139 " View in source ") [ Ⓣ ; ] [ 1 ]
193219
194220The CPU architecture the OS is built for.
195221
@@ -200,18 +226,14 @@ The CPU architecture the OS is built for.
200226<!-- div -->
201227
202228<h3 id =" platformosfamily " ><code >platform.os.family</code ></h3 >
203- [ Ⓢ ; ] ( https://github.com/bestiejs/platform.js/blob/1.3.3 /platform.js#L1089 " View in source ") [ Ⓣ ; ] [ 1 ]
229+ [ Ⓢ ; ] ( https://github.com/bestiejs/platform.js/blob/1.3.4 /platform.js#L1152 " View in source ") [ Ⓣ ; ] [ 1 ]
204230
205- The family of the OS. <br >
206- <br >
207- <br >
208- <br >
209- Common values include: <br >
210- <br >
211- "Windows", "Windows Server ` 2008 ` R2 / ` 7 ` ", "Windows Server ` 2008 ` / Vista", <br >
231+ The family of the OS.
212232<br >
213- "Windows XP", "OS X", "Ubuntu", "Debian", "Fedora", "Red Hat", "SuSE", <br >
214233<br >
234+ Common values include:<br >
235+ "Windows", "Windows Server ` 2008 ` R2 / ` 7 ` ", "Windows Server ` 2008 ` / Vista",
236+ "Windows XP", "OS X", "Ubuntu", "Debian", "Fedora", "Red Hat", "SuSE",
215237"Android", "iOS" and "Windows Phone"
216238
217239---
@@ -221,7 +243,7 @@ Common values include:<br>
221243<!-- div -->
222244
223245<h3 id =" platformostostring " ><code >platform.os.toString()</code ></h3 >
224- [ Ⓢ ; ] ( https://github.com/bestiejs/platform.js/blob/1.3.3 /platform.js#L1105 " View in source ") [ Ⓣ ; ] [ 1 ]
246+ [ Ⓢ ; ] ( https://github.com/bestiejs/platform.js/blob/1.3.4 /platform.js#L1168 " View in source ") [ Ⓣ ; ] [ 1 ]
225247
226248Returns the OS string.
227249
@@ -235,7 +257,7 @@ Returns the OS string.
235257<!-- div -->
236258
237259<h3 id =" platformosversion " ><code >platform.os.version</code ></h3 >
238- [ Ⓢ ; ] ( https://github.com/bestiejs/platform.js/blob/1.3.3 /platform.js#L1097 " View in source ") [ Ⓣ ; ] [ 1 ]
260+ [ Ⓢ ; ] ( https://github.com/bestiejs/platform.js/blob/1.3.4 /platform.js#L1160 " View in source ") [ Ⓣ ; ] [ 1 ]
239261
240262The version of the OS.
241263
0 commit comments