Skip to content

Commit 5e601b7

Browse files
committed
Fixed surveyjs/surveyjs_angular_cli#5 - Boilerplate makes constant calls to http://localhost:4200/undefined
1 parent 27b94d7 commit 5e601b7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/signature_pad.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,9 @@ function init(Survey) {
6363
canvas.width = question.width;
6464
canvas.height = question.height;
6565
resizeCanvas(canvas);
66-
signaturePad.fromDataURL(question.value);
66+
signaturePad.fromDataURL(
67+
question.value || "data:image/gif;base64,R0lGODlhAQABAIAAAP"
68+
);
6769
};
6870
question.valueChangedCallback = updateValueHandler;
6971
updateValueHandler();

0 commit comments

Comments
 (0)