@plattar/plattar-qrcode
Advanced tools
Comparing version 1.160.1 to 1.165.1
@@ -154,7 +154,17 @@ const QRCodeStyling = require("qr-code-styling"); | ||
this._ShortenURL(url).then((newURL) => { | ||
this._GenerateQRCode(newURL, width, height); | ||
// make sure by time promise is resolved that the original url hasn't been updated | ||
const updatedURL = this.hasAttribute("url") ? this.getAttribute("url") : undefined; | ||
if (updatedURL === url) { | ||
this._GenerateQRCode(newURL, width, height); | ||
} | ||
}).catch((_err) => { | ||
console.warn(_err); | ||
// ignore error and just generate normal QR Code | ||
this._GenerateQRCode(url, width, height); | ||
// make sure by time promise is resolved that the original url hasn't been updated | ||
const updatedURL = this.hasAttribute("url") ? this.getAttribute("url") : undefined; | ||
if (updatedURL === url) { | ||
this._GenerateQRCode(url, width, height); | ||
} | ||
}); | ||
@@ -161,0 +171,0 @@ } |
{ | ||
"name": "@plattar/plattar-qrcode", | ||
"version": "1.160.1", | ||
"version": "1.165.1", | ||
"description": "Allows embedding Plattar-Style QR Codes for existing websites.", | ||
@@ -46,5 +46,5 @@ "main": "index.js", | ||
"devDependencies": { | ||
"@babel/cli": "^7.21.0", | ||
"@babel/core": "^7.21.4", | ||
"@babel/preset-env": "^7.21.4", | ||
"@babel/cli": "^7.23.4", | ||
"@babel/core": "^7.23.7", | ||
"@babel/preset-env": "^7.23.8", | ||
"browserify": "^17.0.0", | ||
@@ -51,0 +51,0 @@ "uglify-es": "^3.3.9" |
@@ -1,1 +0,1 @@ | ||
module.exports = "1.160.1"; | ||
module.exports = "1.165.1"; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
517066
4446