chore(img): add worker comments and watch task

This commit is contained in:
Adam Bradley
2016-12-09 12:00:31 -06:00
parent 76ff421d6e
commit f051bba390
3 changed files with 50 additions and 5 deletions

View File

@@ -273,7 +273,9 @@ export class Img implements OnDestroy {
} else {
// error :(
console.error(`img, status: ${msg.status} ${msg.msg}`);
if (msg.status) {
console.error(`img, status: ${msg.status} ${msg.msg}`);
}
this._renderedSrc = this._tmpDataUri = null;
this._dom.write(() => {
this._isLoaded(false);