Permalink
Browse files

Fixed bug when not using a default image.

  • Loading branch information...
1 parent efe4ec6 commit b33fdffd36acab3f9024d454fe604a7fa751c0e5 @ZetaTwo ZetaTwo 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 b33fdff

Please sign in to comment.