puppeteer/assets/js/a6e23ac5.7bbfc2a5.js
release-please[bot] d6383973e2 deploy: eddff1f55a
2024-03-05 10:46:10 +00:00

2 lines
3.1 KiB
JavaScript

/*! For license information please see a6e23ac5.7bbfc2a5.js.LICENSE.txt */
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[61703],{50789:(e,n,r)=>{r.r(n),r.d(n,{assets:()=>p,contentTitle:()=>i,default:()=>l,frontMatter:()=>s,metadata:()=>c,toc:()=>a});var t=r(85893),o=r(11151);const s={sidebar_label:"Browser.isConnected"},i="Browser.isConnected() method",c={id:"api/puppeteer.browser.isconnected",title:"Browser.isConnected() method",description:"Warning: This API is now obsolete.",source:"@site/../docs/api/puppeteer.browser.isconnected.md",sourceDirName:"api",slug:"/api/puppeteer.browser.isconnected",permalink:"/next/api/puppeteer.browser.isconnected",draft:!1,unlisted:!1,tags:[],version:"current",frontMatter:{sidebar_label:"Browser.isConnected"},sidebar:"api",previous:{title:"Browser.disconnect",permalink:"/next/api/puppeteer.browser.disconnect"},next:{title:"Browser.newPage",permalink:"/next/api/puppeteer.browser.newpage"}},p={},a=[{value:"Signature:",id:"signature",level:4}];function d(e){const n={a:"a",blockquote:"blockquote",code:"code",h1:"h1",h4:"h4",p:"p",pre:"pre",strong:"strong",...(0,o.a)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(n.h1,{id:"browserisconnected-method",children:"Browser.isConnected() method"}),"\n",(0,t.jsxs)(n.blockquote,{children:["\n",(0,t.jsx)(n.p,{children:"Warning: This API is now obsolete."}),"\n",(0,t.jsxs)(n.p,{children:["Use ",(0,t.jsx)(n.a,{href:"/next/api/puppeteer.browser",children:"Browser.connected"}),"."]}),"\n"]}),"\n",(0,t.jsxs)(n.p,{children:["Whether Puppeteer is connected to this ",(0,t.jsx)(n.a,{href:"/next/api/puppeteer.browser",children:"browser"}),"."]}),"\n",(0,t.jsx)(n.h4,{id:"signature",children:"Signature:"}),"\n",(0,t.jsx)(n.pre,{children:(0,t.jsx)(n.code,{className:"language-typescript",children:"class Browser {\n isConnected(): boolean;\n}\n"})}),"\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.strong,{children:"Returns:"})}),"\n",(0,t.jsx)(n.p,{children:"boolean"})]})}function l(e={}){const{wrapper:n}={...(0,o.a)(),...e.components};return n?(0,t.jsx)(n,{...e,children:(0,t.jsx)(d,{...e})}):d(e)}},75251:(e,n,r)=>{var t=r(67294),o=Symbol.for("react.element"),s=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,c=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};function a(e,n,r){var t,s={},a=null,d=null;for(t in void 0!==r&&(a=""+r),void 0!==n.key&&(a=""+n.key),void 0!==n.ref&&(d=n.ref),n)i.call(n,t)&&!p.hasOwnProperty(t)&&(s[t]=n[t]);if(e&&e.defaultProps)for(t in n=e.defaultProps)void 0===s[t]&&(s[t]=n[t]);return{$$typeof:o,type:e,key:a,ref:d,props:s,_owner:c.current}}n.Fragment=s,n.jsx=a,n.jsxs=a},85893:(e,n,r)=>{e.exports=r(75251)},11151:(e,n,r)=>{r.d(n,{Z:()=>c,a:()=>i});var t=r(67294);const o={},s=t.createContext(o);function i(e){const n=t.useContext(s);return t.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:i(e.components),t.createElement(s.Provider,{value:n},e.children)}}}]);