mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
2 lines
3.1 KiB
JavaScript
2 lines
3.1 KiB
JavaScript
/*! For license information please see 8d281e1f.42e9c4dc.js.LICENSE.txt */
|
|
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[81806],{71810:(e,r,n)=>{n.r(r),n.d(r,{assets:()=>p,contentTitle:()=>i,default:()=>l,frontMatter:()=>s,metadata:()=>c,toc:()=>a});var t=n(85893),o=n(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/versioned_docs/version-22.8.0/api/puppeteer.browser.isconnected.md",sourceDirName:"api",slug:"/api/puppeteer.browser.isconnected",permalink:"/api/puppeteer.browser.isconnected",draft:!1,unlisted:!1,tags:[],version:"22.8.0",frontMatter:{sidebar_label:"Browser.isConnected"},sidebar:"api",previous:{title:"Browser.disconnect",permalink:"/api/puppeteer.browser.disconnect"},next:{title:"Browser.newPage",permalink:"/api/puppeteer.browser.newpage"}},p={},a=[{value:"Signature:",id:"signature",level:4}];function d(e){const r={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)(r.h1,{id:"browserisconnected-method",children:"Browser.isConnected() method"}),"\n",(0,t.jsxs)(r.blockquote,{children:["\n",(0,t.jsx)(r.p,{children:"Warning: This API is now obsolete."}),"\n",(0,t.jsxs)(r.p,{children:["Use ",(0,t.jsx)(r.a,{href:"/api/puppeteer.browser",children:"Browser.connected"}),"."]}),"\n"]}),"\n",(0,t.jsxs)(r.p,{children:["Whether Puppeteer is connected to this ",(0,t.jsx)(r.a,{href:"/api/puppeteer.browser",children:"browser"}),"."]}),"\n",(0,t.jsx)(r.h4,{id:"signature",children:"Signature:"}),"\n",(0,t.jsx)(r.pre,{children:(0,t.jsx)(r.code,{className:"language-typescript",children:"class Browser {\n isConnected(): boolean;\n}\n"})}),"\n",(0,t.jsx)(r.p,{children:(0,t.jsx)(r.strong,{children:"Returns:"})}),"\n",(0,t.jsx)(r.p,{children:"boolean"})]})}function l(e={}){const{wrapper:r}={...(0,o.a)(),...e.components};return r?(0,t.jsx)(r,{...e,children:(0,t.jsx)(d,{...e})}):d(e)}},75251:(e,r,n)=>{var t=n(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,r,n){var t,s={},a=null,d=null;for(t in void 0!==n&&(a=""+n),void 0!==r.key&&(a=""+r.key),void 0!==r.ref&&(d=r.ref),r)i.call(r,t)&&!p.hasOwnProperty(t)&&(s[t]=r[t]);if(e&&e.defaultProps)for(t in r=e.defaultProps)void 0===s[t]&&(s[t]=r[t]);return{$$typeof:o,type:e,key:a,ref:d,props:s,_owner:c.current}}r.Fragment=s,r.jsx=a,r.jsxs=a},85893:(e,r,n)=>{e.exports=n(75251)},11151:(e,r,n)=>{n.d(r,{Z:()=>c,a:()=>i});var t=n(67294);const o={},s=t.createContext(o);function i(e){const r=t.useContext(s);return t.useMemo((function(){return"function"==typeof e?e(r):{...r,...e}}),[r,e])}function c(e){let r;return r=e.disableParentContext?"function"==typeof e.components?e.components(o):e.components||o:i(e.components),t.createElement(s.Provider,{value:r},e.children)}}}]); |