Skip to content

Commit

Permalink
Fix isJarvis helper method
Browse files Browse the repository at this point in the history
  • Loading branch information
wpalani committed Oct 31, 2023
1 parent 781fdbb commit 9138027
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 @@ -226,14 +226,14 @@ export const handleHelpLinksClick = () => {

/**
* Check if this is a jarvis site or not.
* Deafults to true in cases where the capabilites are not set such as
* Defaults to true in cases where the capabilites are not set such as
* in local and test environments that do not receive capabilities.
*
* @return boolean
*/
export const isJarvis = () => {
if ( NewfoldRuntime.hasCapability( 'isJarvis' ) ) {
return NewfoldRuntime.capabilities.isJarvis;
return window.NewfoldRuntime.capabilities.isJarvis;
} else {
return true;
}
Expand Down

0 comments on commit 9138027

Please sign in to comment.