mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2026-01-10 03:03:08 -08: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:
parent
249e532e07
commit
56a0809768
1 changed files with 3 additions and 1 deletions
|
|
@ -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();
|
||||
}
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue