Skip to content

Commit

Permalink
fix: Fixes minor issue in data file update from < v11.2
Browse files Browse the repository at this point in the history
  • Loading branch information
valentine195 committed Sep 25, 2024
1 parent 86599ec commit e33ebe0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export default class DiceRollerPlugin extends Plugin {
if (typeof data.version !== "string") {
delete data.version;
}
if (compare("11.2.0", data.version ?? "0.0.0", ">")) {
if (compare("11.2.0", data.version ?? "0.0.0", ">") && !("position" in data)) {
data.position = data.showDice
? ButtonPosition.RIGHT
: ButtonPosition.NONE;
Expand Down

0 comments on commit e33ebe0

Please sign in to comment.