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

Commit efe1de1

Browse files
committed
Fix 'isJarvis' check that always returned true
1 parent b12e1d7 commit efe1de1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/app/util/helpers.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,8 @@ export const handleHelpLinksClick = () => {
223223
* @return {boolean} Whether or not this is a jarvis site.
224224
*/
225225
export const isJarvis = () => {
226-
if ( NewfoldRuntime.hasCapability( 'isJarvis' ) ) {
227-
return window.NewfoldRuntime.capabilities.isJarvis;
226+
if ( window.NewfoldRuntime.capabilities.hasOwnProperty( 'isJarvis' ) ) {
227+
return NewfoldRuntime.hasCapability( 'isJarvis' );
228228
}
229229
return true;
230230
};

0 commit comments

Comments
 (0)