mirror of
https://github.com/misskey-dev/misskey.git
synced 2025-01-27 03:31:37 +09:00
fix
This commit is contained in:
parent
5657899ebb
commit
307d7e0ba6
@ -115,7 +115,7 @@ export async function applyWatermark(img: string | Blob, el: HTMLCanvasElement,
|
|||||||
height
|
height
|
||||||
);
|
);
|
||||||
|
|
||||||
const pattern = ctx.createPattern(resizedWatermark, config.repeat === true ? 'repeat' : `repeat-${config.repeat}`);
|
const pattern = ctx.createPattern(resizedWatermark, 'repeat');
|
||||||
if (pattern) {
|
if (pattern) {
|
||||||
ctx.fillStyle = pattern;
|
ctx.fillStyle = pattern;
|
||||||
if (config.rotate != null && config.rotate !== 0) {
|
if (config.rotate != null && config.rotate !== 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user