Release v2.5.6
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
(function () {
|
||||
if (window.QRCodeStyling) {
|
||||
return;
|
||||
}
|
||||
|
||||
var request = new XMLHttpRequest();
|
||||
request.open('GET', '/assets/vendor/qr-code-styling/qr-code-styling.js', false);
|
||||
request.send(null);
|
||||
|
||||
if (request.status < 200 || request.status >= 300) {
|
||||
throw new Error('Failed to load QR code styling library.');
|
||||
}
|
||||
|
||||
var source = String(request.responseText || '');
|
||||
var initialize = new Function(source + '\nreturn typeof QRCodeStyling !== \'undefined\' ? QRCodeStyling : window.QRCodeStyling;');
|
||||
var exported = initialize.call(window);
|
||||
|
||||
if (exported && !window.QRCodeStyling) {
|
||||
window.QRCodeStyling = exported;
|
||||
}
|
||||
}());
|
||||
Reference in New Issue
Block a user