puppeteer/assets/js/722cc891.984cfae7.js
2021-10-07 15:21:45 +00:00

1 line
4.6 KiB
JavaScript

"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[48922],{3905:function(e,r,t){t.d(r,{Zo:function(){return l},kt:function(){return m}});var n=t(67294);function p(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function o(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function a(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?o(Object(t),!0).forEach((function(r){p(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):o(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function c(e,r){if(null==e)return{};var t,n,p=function(e,r){if(null==e)return{};var t,n,p={},o=Object.keys(e);for(n=0;n<o.length;n++)t=o[n],r.indexOf(t)>=0||(p[t]=e[t]);return p}(e,r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n<o.length;n++)t=o[n],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(p[t]=e[t])}return p}var i=n.createContext({}),u=function(e){var r=n.useContext(i),t=r;return e&&(t="function"==typeof e?e(r):a(a({},r),e)),t},l=function(e){var r=u(e.components);return n.createElement(i.Provider,{value:r},e.children)},f={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},s=n.forwardRef((function(e,r){var t=e.components,p=e.mdxType,o=e.originalType,i=e.parentName,l=c(e,["components","mdxType","originalType","parentName"]),s=u(t),m=p,d=s["".concat(i,".").concat(m)]||s[m]||f[m]||o;return t?n.createElement(d,a(a({ref:r},l),{},{components:t})):n.createElement(d,a({ref:r},l))}));function m(e,r){var t=arguments,p=r&&r.mdxType;if("string"==typeof e||p){var o=t.length,a=new Array(o);a[0]=s;var c={};for(var i in r)hasOwnProperty.call(r,i)&&(c[i]=r[i]);c.originalType=e,c.mdxType="string"==typeof e?e:p,a[1]=c;for(var u=2;u<o;u++)a[u]=t[u];return n.createElement.apply(null,a)}return n.createElement.apply(null,t)}s.displayName="MDXCreateElement"},44466:function(e,r,t){t.r(r),t.d(r,{frontMatter:function(){return c},contentTitle:function(){return i},metadata:function(){return u},toc:function(){return l},default:function(){return s}});var n=t(87462),p=t(63366),o=(t(67294),t(3905)),a=["components"],c={},i=void 0,u={unversionedId:"puppeteer.browserfetcher.platform",id:"version-9.1.1/puppeteer.browserfetcher.platform",isDocsHomePage:!1,title:"puppeteer.browserfetcher.platform",description:"Home &gt; puppeteer &gt; BrowserFetcher &gt; platform",source:"@site/versioned_docs/version-9.1.1/puppeteer.browserfetcher.platform.md",sourceDirName:".",slug:"/puppeteer.browserfetcher.platform",permalink:"/puppeteer/docs/9.1.1/puppeteer.browserfetcher.platform",editUrl:"https://github.com/facebook/puppeteer/edit/main/website/versioned_docs/version-9.1.1/puppeteer.browserfetcher.platform.md",version:"9.1.1",frontMatter:{},sidebar:"version-9.1.1/docs",previous:{title:"puppeteer.browserfetcher.localrevisions",permalink:"/puppeteer/docs/9.1.1/puppeteer.browserfetcher.localrevisions"},next:{title:"puppeteer.browserfetcher.product",permalink:"/puppeteer/docs/9.1.1/puppeteer.browserfetcher.product"}},l=[{value:"BrowserFetcher.platform() method",id:"browserfetcherplatform-method",children:[]}],f={toc:l};function s(e){var r=e.components,t=(0,p.Z)(e,a);return(0,o.kt)("wrapper",(0,n.Z)({},f,t,{components:r,mdxType:"MDXLayout"}),(0,o.kt)("p",null,(0,o.kt)("a",{parentName:"p",href:"/puppeteer/docs/9.1.1/index"},"Home")," ",">"," ",(0,o.kt)("a",{parentName:"p",href:"/puppeteer/docs/9.1.1/puppeteer"},"puppeteer")," ",">"," ",(0,o.kt)("a",{parentName:"p",href:"/puppeteer/docs/9.1.1/puppeteer.browserfetcher"},"BrowserFetcher")," ",">"," ",(0,o.kt)("a",{parentName:"p",href:"/puppeteer/docs/9.1.1/puppeteer.browserfetcher.platform"},"platform")),(0,o.kt)("h2",{id:"browserfetcherplatform-method"},"BrowserFetcher.platform() method"),(0,o.kt)("b",null,"Signature:"),(0,o.kt)("pre",null,(0,o.kt)("code",{parentName:"pre",className:"language-typescript"},"platform(): Platform;\n")),(0,o.kt)("b",null,"Returns:"),(0,o.kt)("p",null,(0,o.kt)("a",{parentName:"p",href:"/puppeteer/docs/9.1.1/puppeteer.platform"},"Platform")),(0,o.kt)("p",null,"Returns the current ",(0,o.kt)("inlineCode",{parentName:"p"},"Platform"),", which is one of ",(0,o.kt)("inlineCode",{parentName:"p"},"mac"),", ",(0,o.kt)("inlineCode",{parentName:"p"},"linux"),", ",(0,o.kt)("inlineCode",{parentName:"p"},"win32")," or ",(0,o.kt)("inlineCode",{parentName:"p"},"win64"),"."))}s.isMDXComponent=!0}}]);