forked from 0x2620/pandora
return empty string instead of invalid data url
This commit is contained in:
parent
5225026d66
commit
9355ae691d
1 changed files with 3 additions and 0 deletions
|
@ -52,6 +52,9 @@ pandora.ui.editPanel = function(isEmbed) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function getSmallTimelineURL() {
|
function getSmallTimelineURL() {
|
||||||
|
if (!edit.duration) {
|
||||||
|
return ''
|
||||||
|
}
|
||||||
smallTimelineCanvas = getSmallTimelineCanvas();
|
smallTimelineCanvas = getSmallTimelineCanvas();
|
||||||
smallTimelineContext = smallTimelineCanvas.getContext('2d');
|
smallTimelineContext = smallTimelineCanvas.getContext('2d');
|
||||||
return smallTimelineCanvas.toDataURL();
|
return smallTimelineCanvas.toDataURL();
|
||||||
|
|
Loading…
Reference in a new issue