Skip to content

Commit 9707ad7

Browse files
Convert version major and minor to numbers (#180)
* Convert version major and minor to numbers * fix linting error Co-authored-by: Webber Takken <webber@takken.io>
1 parent 8eeb848 commit 9707ad7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/model/image-tag.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class ImageTag {
5151
facebook,
5252
} = ImageTag.imageSuffixes;
5353

54-
const [major, minor] = version.split('.');
54+
const [major, minor] = version.split('.').map((digit) => Number(digit));
5555
// @see: https://docs.unity3d.com/ScriptReference/BuildTarget.html
5656
switch (platform) {
5757
case Platform.types.StandaloneOSX:

0 commit comments

Comments
 (0)