Skip to content
This repository was archived by the owner on Jan 30, 2025. It is now read-only.

Commit

Permalink
Fix 'isJarvis' check that always returned true
Browse files Browse the repository at this point in the history
  • Loading branch information
officiallygod committed Dec 10, 2024
1 parent b12e1d7 commit efe1de1
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 efe1de1

Please sign in to comment.