Skip to content

Commit 5ec47bc

Browse files
authored
Merge pull request lindell#157 from SanichKotikov/ie-fix
lindell#155: Removed unsupported String.prototype.repeat() (IE fix)
2 parents bbab3fb + 28cc223 commit 5ec47bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/JsBarcode.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ API.prototype.options = function(options){
127127

128128
// Will create a blank space (usually in between barcodes)
129129
API.prototype.blank = function(size){
130-
var zeroes = "0".repeat(size);
130+
const zeroes = new Array(size + 1).join("0");
131131
this._encodings.push({data: zeroes});
132132
return this;
133133
};

0 commit comments

Comments
 (0)