mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-03-13 19:13:46 +00:00
Added margin option to QR code component
This commit is contained in:
@@ -24,7 +24,7 @@ export const buildQrCodeUrl = (
|
||||
const query = stringifyQuery({
|
||||
size: useSizeInPath ? undefined : size,
|
||||
format: svgIsSupported ? format : undefined,
|
||||
margin: marginIsSupported ? margin : undefined,
|
||||
margin: marginIsSupported && margin > 0 ? margin : undefined,
|
||||
});
|
||||
|
||||
return `${baseUrl}${isEmpty(query) ? '' : `?${query}`}`;
|
||||
|
||||
Reference in New Issue
Block a user