From 07ad12874b9eb534ad47be6a3acd666c283d9c54 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Tue, 27 Jul 2021 19:41:31 +0200 Subject: version loading fix --- project.ts | 4 ++-- 1 file 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')); } } -- cgit v1.2.3