diff --git a/com.twin.app.shoptime/src/components/TQRCode/TQRCode.jsx b/com.twin.app.shoptime/src/components/TQRCode/TQRCode.jsx index 5ac1aa89..b354e97a 100644 --- a/com.twin.app.shoptime/src/components/TQRCode/TQRCode.jsx +++ b/com.twin.app.shoptime/src/components/TQRCode/TQRCode.jsx @@ -45,6 +45,13 @@ export default function TQRCode({ height: scaleH(height), correctLevel: window.QRCode.CorrectLevel.L, }); + } else if (typeof window === "object") { + const qrcode = new window.QRCode(qrcodeRef.current, { + text: `${text}`, + width: scaleW(width), + height: scaleH(height), + correctLevel: window.QRCode.CorrectLevel.L, + }); } }, [text, deviceInfo]); return
;