File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " react-scan" ,
3- "version" : " 0.0.30 " ,
3+ "version" : " 0.0.31 " ,
44 "description" : " Scan your React app for renders" ,
55 "keywords" : [
66 " react" ,
99 " render" ,
1010 " performance"
1111 ],
12- "homepage" : " https://github.com/aidenybai/ react-scan#readme " ,
12+ "homepage" : " https://react-scan.million.dev " ,
1313 "bugs" : {
1414 "url" : " https://github.com/aidenybai/react-scan/issues"
1515 },
Original file line number Diff line number Diff line change @@ -344,7 +344,7 @@ export const withScan = <T>(
344344) => {
345345 setOptions ( options ) ;
346346 const { isInIframe, componentAllowList } = ReactScanInternals ;
347- if ( isInIframe || options . enabled === false ) return component ;
347+ if ( isInIframe ) return component ;
348348 if ( ! componentAllowList ) {
349349 ReactScanInternals . componentAllowList = new WeakMap <
350350 React . ComponentType < any > ,
@@ -363,7 +363,7 @@ export const withScan = <T>(
363363export const scan = ( options : Options = { } ) => {
364364 setOptions ( options ) ;
365365 const { isInIframe } = ReactScanInternals ;
366- if ( isInIframe || options . enabled === false ) return ;
366+ if ( isInIframe ) return ;
367367
368368 start ( ) ;
369369} ;
You can’t perform that action at this time.
0 commit comments