Skip to content

Commit

Permalink
semvar fallback for dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Ludington authored and Greg Ludington committed Nov 28, 2020
1 parent 7d16e13 commit 0035c80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/module/ConditionalVisibility.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export class ConditionalVisibility {
const firstSemVar:Array<number> = this.splitOnDot(first);
const secondSemVar:Array<number> = this.splitOnDot(second);
if (firstSemVar.length != secondSemVar.length) {
throw new Error("bad semvar");
throw new Error("bad semvar first " + first +", second" + second);
}
for (let i = 0; i < firstSemVar.length;i++ ){
if (firstSemVar[i] > secondSemVar[i]) {
Expand Down Expand Up @@ -176,7 +176,7 @@ export class ConditionalVisibility {
this.draw();

const popupVersion = game.settings.get(MODULE_NAME, "popup-version");
const currentVersion = "0.0.3";//game.modules.get(MODULE_NAME).data.version;
const currentVersion = game.modules.get(MODULE_NAME).data.version === "@tagVersion@" ? "0.0.3" : game.modules.get(MODULE_NAME).data.version;

if (this.isSemvarGreater(currentVersion, popupVersion)) {
renderTemplate("modules/conditional-visibility/templates/version_popup.html", {
Expand Down

0 comments on commit 0035c80

Please sign in to comment.