Permalink
Browse files

Merge pull request #1 from ZetaTwo/master

Fixed bug when not using default image.
  • Loading branch information...
2 parents efe4ec6 + b33fdff commit 50aa93028fd6a95ee9eb1a4f7ea9c70c50877d66 @mihaisucan committed Apr 27, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/paintweb.js
View
@@ -902,7 +902,7 @@ function PaintWeb (win, doc) {
return false;
}
- if (!pwlib.isSameHost(imageLoad.src, win.location.host)) {
+ if (imageLoad && !pwlib.isSameHost(imageLoad.src, win.location.host)) {
cfg.imageLoad = imageLoad = null;
alert(lang.imageLoadDifferentHost);
}

0 comments on commit 50aa930

Please sign in to comment.