File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -341,10 +341,9 @@ function buildBarcodeURL() {
341341 // The API target
342342 var url = //
343343 location . origin + //
344- "/api" + //
345- "/" + type + //
346- "/" + encodeURIComponent ( text ) + //
347- "?" + buildOptionsString ( ) ;
344+ "/api/" + type + "/" + //
345+ encodeURIComponent ( text ) + //
346+ buildOptionsString ( ) ;
348347
349348 return url ;
350349}
@@ -457,7 +456,7 @@ function delayUpdateBarcode() {
457456 */
458457function buildOptionsString ( ) {
459458
460- var options = "" ;
459+ var options = "? " ;
461460
462461 // Override Color (FG)
463462 if ( appOptions . render . colorFG != appOptions . default . colorFG ) {
@@ -484,7 +483,7 @@ function buildOptionsString() {
484483 options += "&text=" + appOptions . render . hrt ;
485484 }
486485
487- return options ;
486+ return ( options . length > 1 ) ? options : "" ;
488487}
489488
490489/**
You can’t perform that action at this time.
0 commit comments