From e257e5ecff7e1a6478662b17ddce7198e8850109 Mon Sep 17 00:00:00 2001 From: Paal Joergensen Date: Mon, 10 Sep 2018 11:30:57 +0200 Subject: [PATCH] HFP-2185 Treat major & minor version as int (not string) --- js/h5p.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/h5p.js b/js/h5p.js index 4330ade..42f9519 100644 --- a/js/h5p.js +++ b/js/h5p.js @@ -1657,8 +1657,8 @@ H5P.libraryFromString = function (library) { if (res !== null) { return { 'machineName': res[1], - 'majorVersion': res[2], - 'minorVersion': res[3] + 'majorVersion': parseInt(res[2]), + 'minorVersion': parseInt(res[3]) }; } else {