mirror of
https://github.com/24eme/signaturepdf
synced 2026-03-14 13:55:44 +01:00
watermark: quick fix error in sharing mode
input does not exist in sharing mode
This commit is contained in:
parent
acb5e5b61b
commit
e48cbf9663
1 changed files with 4 additions and 0 deletions
|
|
@ -493,6 +493,10 @@ function addObjectInCanvas(canvas, item) {
|
|||
};
|
||||
|
||||
function updateWatermark() {
|
||||
if (document.querySelector('input[name=watermark]') === null) {
|
||||
return
|
||||
}
|
||||
|
||||
const text = new fabric.Text(document.querySelector('input[name=watermark]').value, {angle: -40, fill: "#0009", fontSize: 27 * currentScale})
|
||||
text.scale = 0.
|
||||
const overlay = new fabric.Rect({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue