Skip to content

Commit

Permalink
comment added
Browse files Browse the repository at this point in the history
  • Loading branch information
mStirner committed Jun 15, 2024
1 parent 4b7cdaa commit be3a847
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/plugins/class.plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ module.exports = class Plugin extends Item {
let content = fs.readFileSync(file);
json = JSON.parse(content);

// check in further version:
// json?.openhaus?.backend || json?.openhaus?.versions?.backend
// when a plugin provides frontend stuff or store data about itself in openhaus.plugin/openhaus.intents
if (!semver.satisfies(pkg.version, json?.backend)) {
this.logger.warn(`Plugin "${this.name}" is incompatible. It may work not properly or break something!`);
}
Expand Down

0 comments on commit be3a847

Please sign in to comment.