Don't copy styles for regular computed rendering

This commit is contained in:
MoyuScript
2017-08-18 20:52:29 +08:00
parent 249d6f838b
commit 4fb8fcd584
4 changed files with 12 additions and 8 deletions

View File

@@ -38,7 +38,11 @@ export default class ImageLoader<T> {
return this.addImage(src, src);
}
} else {
if (this.options.allowTaint === true || isInlineBase64Image(src) || this.isSameOrigin(src)) {
if (
this.options.allowTaint === true ||
isInlineBase64Image(src) ||
this.isSameOrigin(src)
) {
return this.addImage(src, src);
} else if (typeof this.options.proxy === 'string' && !this.isSameOrigin(src)) {
// TODO proxy