Add the startSidebarExpanded setting (closes #2)
This commit is contained in:
parent
d856f7b1c8
commit
529aa72bdf
10 changed files with 71 additions and 5 deletions
18
module/utils/isBetweenVersions.mjs
Normal file
18
module/utils/isBetweenVersions.mjs
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
export function isBetweenVersions(min, target, max) {
|
||||
|
||||
if (min) {
|
||||
const isOlderThanMin = foundry.utils.isNewerVersion(min, target);
|
||||
if (isOlderThanMin) {
|
||||
return false;
|
||||
};
|
||||
};
|
||||
|
||||
if (max) {
|
||||
const isNewerThanMax = foundry.utils.isNewerVersion(target, max);
|
||||
if (isNewerThanMax) {
|
||||
return false;
|
||||
};
|
||||
};
|
||||
|
||||
return true;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue