Skip to content

Commit

Permalink
Jetpack Site: check if this.modules is defined, just in case ¯\_(ツ)_/¯
Browse files Browse the repository at this point in the history
  • Loading branch information
lezama committed Dec 17, 2015
1 parent 1b2ff16 commit 68f9027
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/lib/site/jetpack.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ JetpackSite.prototype.isMainNetworkSite = function() {
};

JetpackSite.prototype.isModuleActive = function( moduleId ) {
return this.modules.includes( moduleId );
return this.modules && this.modules.includes( moduleId );
};

JetpackSite.prototype.verifyModulesActive = function( moduleIds, callback ) {
Expand Down

0 comments on commit 68f9027

Please sign in to comment.