Skip to content

Commit

Permalink
add VERSION const as p5.VERSION processing#2525 (comment)
Browse files Browse the repository at this point in the history
  • Loading branch information
micuat committed Apr 9, 2021
1 parent e68179c commit 3e467fc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -714,6 +714,8 @@ for (const k in constants) {
p5.prototype[k] = constants[k];
}

p5.VERSION = constants.VERSION;

// functions that cause preload to wait
// more can be added by using registerPreloadMethod(func)
p5.prototype._preloadMethods = {
Expand Down

0 comments on commit 3e467fc

Please sign in to comment.