mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
2 lines
2.9 KiB
JavaScript
2 lines
2.9 KiB
JavaScript
/*! For license information please see 78370e86.00d265de.js.LICENSE.txt */
|
|
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[32437],{29668:(e,r,n)=>{n.r(r),n.d(r,{assets:()=>p,contentTitle:()=>i,default:()=>u,frontMatter:()=>o,metadata:()=>c,toc:()=>a});var t=n(85893),s=n(11151);const o={sidebar_label:"Browser.disconnect"},i="Browser.disconnect() method",c={id:"api/puppeteer.browser.disconnect",title:"Browser.disconnect() method",description:"Disconnects Puppeteer from this browser, but leaves the process running.",source:"@site/versioned_docs/version-22.8.2/api/puppeteer.browser.disconnect.md",sourceDirName:"api",slug:"/api/puppeteer.browser.disconnect",permalink:"/api/puppeteer.browser.disconnect",draft:!1,unlisted:!1,tags:[],version:"22.8.2",frontMatter:{sidebar_label:"Browser.disconnect"},sidebar:"api",previous:{title:"Browser.defaultBrowserContext",permalink:"/api/puppeteer.browser.defaultbrowsercontext"},next:{title:"Browser.isConnected",permalink:"/api/puppeteer.browser.isconnected"}},p={},a=[{value:"Signature:",id:"signature",level:4}];function d(e){const r={a:"a",code:"code",h1:"h1",h4:"h4",p:"p",pre:"pre",strong:"strong",...(0,s.a)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.h1,{id:"browserdisconnect-method",children:"Browser.disconnect() method"}),"\n",(0,t.jsxs)(r.p,{children:["Disconnects Puppeteer from this ",(0,t.jsx)(r.a,{href:"/api/puppeteer.browser",children:"browser"}),", but leaves the process running."]}),"\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 abstract disconnect(): Promise<void>;\n}\n"})}),"\n",(0,t.jsx)(r.p,{children:(0,t.jsx)(r.strong,{children:"Returns:"})}),"\n",(0,t.jsx)(r.p,{children:"Promise<void>"})]})}function u(e={}){const{wrapper:r}={...(0,s.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),s=Symbol.for("react.element"),o=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,o={},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)&&(o[t]=r[t]);if(e&&e.defaultProps)for(t in r=e.defaultProps)void 0===o[t]&&(o[t]=r[t]);return{$$typeof:s,type:e,key:a,ref:d,props:o,_owner:c.current}}r.Fragment=o,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 s={},o=t.createContext(s);function i(e){const r=t.useContext(o);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(s):e.components||s:i(e.components),t.createElement(o.Provider,{value:r},e.children)}}}]); |