We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eea6768 commit 87e3749Copy full SHA for 87e3749
ZplEscPrinter/js/main.js
@@ -126,14 +126,14 @@ async function zpl(data){
126
continue;
127
}
128
129
- zpl += '^XZ';
+ zpl = zpl.replace(/^\s+/, '') + '^XZ';
130
131
let api_url = atob('aHR0cDovL2FwaS5sYWJlbGFyeS5jb20vdjEvcHJpbnRlcnMvezB9ZHBtbS9sYWJlbHMvezF9eHsyfS8wLw==')
132
.format(configs.density, width>15.0 ? 15 : width, height);
133
let blob = await displayZplImage(api_url, zpl, width, height);
134
135
if (![1, '1', true, 'true'].includes(configs.saveLabels)) {
136
- return;
+ continue;
137
138
139
console.info("configs", configs.saveLabels, "fileType", configs.filetype);
0 commit comments