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 299e4059.3a34826c.js.LICENSE.txt */
|
|
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[60174],{98236:(e,t,a)=>{a.r(t),a.d(t,{assets:()=>o,contentTitle:()=>i,default:()=>d,frontMatter:()=>s,metadata:()=>p,toc:()=>c});var r=a(85893),n=a(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/../docs/api/puppeteer.page.isjavascriptenabled.md",sourceDirName:"api",slug:"/api/puppeteer.page.isjavascriptenabled",permalink:"/next/api/puppeteer.page.isjavascriptenabled",draft:!1,unlisted:!1,tags:[],version:"current",frontMatter:{sidebar_label:"Page.isJavaScriptEnabled"},sidebar:"api",previous:{title:"Page.isDragInterceptionEnabled",permalink:"/next/api/puppeteer.page.isdraginterceptionenabled"},next:{title:"Page.isServiceWorkerBypassed",permalink:"/next/api/puppeteer.page.isserviceworkerbypassed"}},o={},c=[{value:"Signature:",id:"signature",level:4}];function l(e){const t={code:"code",h1:"h1",h4:"h4",p:"p",pre:"pre",strong:"strong",...(0,n.a)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t.h1,{id:"pageisjavascriptenabled-method",children:"Page.isJavaScriptEnabled() method"}),"\n",(0,r.jsxs)(t.p,{children:[(0,r.jsx)(t.code,{children:"true"})," if the page has JavaScript enabled, ",(0,r.jsx)(t.code,{children:"false"})," otherwise."]}),"\n",(0,r.jsx)(t.h4,{id:"signature",children:"Signature:"}),"\n",(0,r.jsx)(t.pre,{children:(0,r.jsx)(t.code,{className:"language-typescript",children:"class Page {\n abstract isJavaScriptEnabled(): boolean;\n}\n"})}),"\n",(0,r.jsx)(t.p,{children:(0,r.jsx)(t.strong,{children:"Returns:"})}),"\n",(0,r.jsx)(t.p,{children:"boolean"})]})}function d(e={}){const{wrapper:t}={...(0,n.a)(),...e.components};return t?(0,r.jsx)(t,{...e,children:(0,r.jsx)(l,{...e})}):l(e)}},75251:(e,t,a)=>{var r=a(67294),n=Symbol.for("react.element"),s=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,p=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,a){var r,s={},c=null,l=null;for(r in void 0!==a&&(c=""+a),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(l=t.ref),t)i.call(t,r)&&!o.hasOwnProperty(r)&&(s[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===s[r]&&(s[r]=t[r]);return{$$typeof:n,type:e,key:c,ref:l,props:s,_owner:p.current}}t.Fragment=s,t.jsx=c,t.jsxs=c},85893:(e,t,a)=>{e.exports=a(75251)},11151:(e,t,a)=>{a.d(t,{Z:()=>p,a:()=>i});var r=a(67294);const n={},s=r.createContext(n);function i(e){const t=r.useContext(s);return r.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function p(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:i(e.components),r.createElement(s.Provider,{value:t},e.children)}}}]); |