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>
This commit is contained in:
@@ -51,7 +51,7 @@ class ImageTag {
|
|||||||
facebook,
|
facebook,
|
||||||
} = ImageTag.imageSuffixes;
|
} = ImageTag.imageSuffixes;
|
||||||
|
|
||||||
const [major, minor] = version.split('.');
|
const [major, minor] = version.split('.').map((digit) => Number(digit));
|
||||||
// @see: https://docs.unity3d.com/ScriptReference/BuildTarget.html
|
// @see: https://docs.unity3d.com/ScriptReference/BuildTarget.html
|
||||||
switch (platform) {
|
switch (platform) {
|
||||||
case Platform.types.StandaloneOSX:
|
case Platform.types.StandaloneOSX:
|
||||||
|
|||||||
Reference in New Issue
Block a user