1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-25 01:20:30 +00:00

Fix problem with edit-bitmap widget static rendering

The ‘introduction’ edition contains an edit-bitmap widget that was
failing under Node.js because the fake dom doesn’t support canvas.
This commit is contained in:
Jermolene 2014-11-27 23:01:48 +00:00
parent 249e532e07
commit 56a0809768

View File

@ -80,7 +80,9 @@ EditBitmapWidget.prototype.render = function(parent,nextSibling) {
parent.insertBefore(this.heightDomNode,nextSibling);
this.domNodes.push(this.canvasDomNode,this.widthDomNode,this.heightDomNode);
// Load the image into the canvas
this.loadCanvas();
if($tw.browser) {
this.loadCanvas();
}
};
/*