From bb3542f7ad02ad9c0b966941c0186d769a0859aa Mon Sep 17 00:00:00 2001 From: I Putu Yoga Permana Date: Thu, 10 Aug 2023 13:26:37 +0700 Subject: [PATCH 1/2] Update qrcode.js --- qrcode.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qrcode.js b/qrcode.js index 5507c15..76f2992 100644 --- a/qrcode.js +++ b/qrcode.js @@ -162,7 +162,7 @@ var QRCode; if (/android/i.test(sAgent)) { // android android = true; - var aMat = sAgent.toString().match(/android ([0-9]\.[0-9])/i); + var aMat = sAgent.toString().match(/android ([0-9]+(.[0-9])?)/i); if (aMat && aMat[1]) { android = parseFloat(aMat[1]); From c9257561b10b1bfd5188e872bc30e0ab149eaa73 Mon Sep 17 00:00:00 2001 From: I Putu Yoga Permana Date: Thu, 10 Aug 2023 13:41:59 +0700 Subject: [PATCH 2/2] Update qrcode.js --- qrcode.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/qrcode.js b/qrcode.js index 76f2992..34df11d 100644 --- a/qrcode.js +++ b/qrcode.js @@ -595,9 +595,7 @@ var QRCode; * @private */ QRCode.prototype.makeImage = function () { - if (typeof this._oDrawing.makeImage == "function" && (!this._android || this._android >= 3)) { - this._oDrawing.makeImage(); - } + this._oDrawing.makeImage(); }; /**