aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2021-07-27 19:41:31 +0200
committerlonkaars <loek@pipeframe.xyz>2021-07-27 19:41:31 +0200
commit07ad12874b9eb534ad47be6a3acd666c283d9c54 (patch)
tree3297e9f15e237d331f5d443133b6dcc4b81fc547
parent88bee339d29b2e318fb2ddc3baeaa4ff8c0764a7 (diff)
version loading fix
-rw-r--r--project.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/project.ts b/project.ts
index 0fbdeb4..6abc30a 100644
--- a/project.ts
+++ b/project.ts
@@ -165,11 +165,11 @@ export default class {
await this.video.load(source);
this.video.mimetype = await source.file('mimetype').async('string');
- if (semver.lt('0.1.1', this.fileVersion)) {
+ if (semver.lte('0.1.1', this.fileVersion)) {
this.video.config = JSON.parse(await this.zip.file('source/config').async('string'));
}
- if (semver.lt('0.2.0', this.fileVersion)) {
+ if (semver.lte('0.2.0', this.fileVersion)) {
this.settings = JSON.parse(await this.zip.file('settings').async('string'));
}
}