Skip to content

Commit

Permalink
Merge pull request #1460 from bluehost/fix/isJarvis-check
Browse files Browse the repository at this point in the history
Fix 'isJarvis' check that always returned true
  • Loading branch information
circlecube authored Dec 11, 2024
2 parents b14debd + d45361f commit daed04d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/util/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,8 @@ export const handleHelpLinksClick = () => {
* @return {boolean} Whether or not this is a jarvis site.
*/
export const isJarvis = () => {
if ( NewfoldRuntime.hasCapability( 'isJarvis' ) ) {
return window.NewfoldRuntime.capabilities.isJarvis;
if ( window.NewfoldRuntime.capabilities.hasOwnProperty( 'isJarvis' ) ) {
return NewfoldRuntime.hasCapability( 'isJarvis' );
}
return true;
};

0 comments on commit daed04d

Please sign in to comment.