mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
2 lines
3.0 KiB
JavaScript
2 lines
3.0 KiB
JavaScript
/*! For license information please see c8ad9fab.08a30817.js.LICENSE.txt */
|
|
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[82079],{19273:(e,a,r)=>{r.r(a),r.d(a,{assets:()=>o,contentTitle:()=>i,default:()=>d,frontMatter:()=>s,metadata:()=>p,toc:()=>c});var t=r(85893),n=r(11151);const s={sidebar_label:"Page.isJavaScriptEnabled"},i="Page.isJavaScriptEnabled() method",p={id:"api/puppeteer.page.isjavascriptenabled",title:"Page.isJavaScriptEnabled() method",description:"true if the page has JavaScript enabled, false otherwise.",source:"@site/versioned_docs/version-22.8.2/api/puppeteer.page.isjavascriptenabled.md",sourceDirName:"api",slug:"/api/puppeteer.page.isjavascriptenabled",permalink:"/api/puppeteer.page.isjavascriptenabled",draft:!1,unlisted:!1,tags:[],version:"22.8.2",frontMatter:{sidebar_label:"Page.isJavaScriptEnabled"},sidebar:"api",previous:{title:"Page.isDragInterceptionEnabled",permalink:"/api/puppeteer.page.isdraginterceptionenabled"},next:{title:"Page.isServiceWorkerBypassed",permalink:"/api/puppeteer.page.isserviceworkerbypassed"}},o={},c=[{value:"Signature:",id:"signature",level:4}];function l(e){const a={code:"code",h1:"h1",h4:"h4",p:"p",pre:"pre",strong:"strong",...(0,n.a)(),...e.components};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a.h1,{id:"pageisjavascriptenabled-method",children:"Page.isJavaScriptEnabled() method"}),"\n",(0,t.jsxs)(a.p,{children:[(0,t.jsx)(a.code,{children:"true"})," if the page has JavaScript enabled, ",(0,t.jsx)(a.code,{children:"false"})," otherwise."]}),"\n",(0,t.jsx)(a.h4,{id:"signature",children:"Signature:"}),"\n",(0,t.jsx)(a.pre,{children:(0,t.jsx)(a.code,{className:"language-typescript",children:"class Page {\n abstract isJavaScriptEnabled(): boolean;\n}\n"})}),"\n",(0,t.jsx)(a.p,{children:(0,t.jsx)(a.strong,{children:"Returns:"})}),"\n",(0,t.jsx)(a.p,{children:"boolean"})]})}function d(e={}){const{wrapper:a}={...(0,n.a)(),...e.components};return a?(0,t.jsx)(a,{...e,children:(0,t.jsx)(l,{...e})}):l(e)}},75251:(e,a,r)=>{var t=r(67294),n=Symbol.for("react.element"),s=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,p=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function c(e,a,r){var t,s={},c=null,l=null;for(t in void 0!==r&&(c=""+r),void 0!==a.key&&(c=""+a.key),void 0!==a.ref&&(l=a.ref),a)i.call(a,t)&&!o.hasOwnProperty(t)&&(s[t]=a[t]);if(e&&e.defaultProps)for(t in a=e.defaultProps)void 0===s[t]&&(s[t]=a[t]);return{$$typeof:n,type:e,key:c,ref:l,props:s,_owner:p.current}}a.Fragment=s,a.jsx=c,a.jsxs=c},85893:(e,a,r)=>{e.exports=r(75251)},11151:(e,a,r)=>{r.d(a,{Z:()=>p,a:()=>i});var t=r(67294);const n={},s=t.createContext(n);function i(e){const a=t.useContext(s);return t.useMemo((function(){return"function"==typeof e?e(a):{...a,...e}}),[a,e])}function p(e){let a;return a=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:i(e.components),t.createElement(s.Provider,{value:a},e.children)}}}]); |