From 9b1217087014544112695265f69842ef1ef1f1a5 Mon Sep 17 00:00:00 2001 From: Mikhail Losev Date: Thu, 7 Jul 2016 14:47:29 +0300 Subject: [PATCH] change wrong method name (#662) --- src/client/sandbox/node/element.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/sandbox/node/element.js b/src/client/sandbox/node/element.js index 81ea2e760..788bb4e32 100644 --- a/src/client/sandbox/node/element.js +++ b/src/client/sandbox/node/element.js @@ -520,7 +520,7 @@ export default class ElementSandbox extends SandboxBase { window.HTMLFormElement.prototype.submit = this.overridedMethods.formSubmit; } - _setNonProxedSrcOnError (img) { + _setProxiedSrcUrlOnError (img) { img.addEventListener('error', e => { var storedAttr = nativeMethods.getAttribute.call(img, domProcessor.getStoredAttrName('src')); @@ -534,7 +534,7 @@ export default class ElementSandbox extends SandboxBase { processElement (el) { if (domUtils.isImgElement(el)) - this._setNonProxedSrcOnError(el); + this._setProxiedSrcUrlOnError(el); else if (domUtils.isIframeElement(el)) this.iframeSandbox.processIframe(el); else if (domUtils.isBaseElement(el))