Skip to content

Commit 48bfeb5

Browse files
committed
Fix http call to bwipjs
1 parent 9c36b79 commit 48bfeb5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/playground.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -340,11 +340,11 @@
340340
}
341341

342342
if (command.type === 'qrcode' && command.command === 'print') {
343-
result += `<div class='placeholder ${command.type} ${align}'><img src='http://bwipjs-api.metafloor.com/?bcid=qrcode&text=${command.value}' onerror="this.style.display='none'"></div>`;
343+
result += `<div class='placeholder ${command.type} ${align}'><img src='https://bwipjs-api.metafloor.com/?bcid=qrcode&text=${command.value}' onerror="this.style.display='none'"></div>`;
344344
}
345345

346346
if (command.type === 'pdf417' && command.command === 'print') {
347-
result += `<div class='placeholder ${command.type} ${align}'><img src='http://bwipjs-api.metafloor.com/?bcid=pdf417&text=${command.value}' onerror="this.style.display='none'"></div>`;
347+
result += `<div class='placeholder ${command.type} ${align}'><img src='https://bwipjs-api.metafloor.com/?bcid=pdf417&text=${command.value}' onerror="this.style.display='none'"></div>`;
348348
}
349349

350350
if (command.type === 'barcode' && ! command.property) {
@@ -369,7 +369,7 @@
369369
'code128-auto': 'code128',
370370
}
371371

372-
result += `<div class='placeholder ${command.type} ${align}'><img src='http://bwipjs-api.metafloor.com/?bcid=${symbologies[command.value.symbology]}&text=${command.value.data}' onerror="this.style.display='none'"></div>`;
372+
result += `<div class='placeholder ${command.type} ${align}'><img src='https://bwipjs-api.metafloor.com/?bcid=${symbologies[command.value.symbology]}&text=${command.value.data}' onerror="this.style.display='none'"></div>`;
373373
}
374374

375375
if (command.type === 'image') {

0 commit comments

Comments
 (0)