Index: composer.postload.js |
diff --git a/composer.postload.js b/composer.postload.js |
index dcf808b85a786c809b788926ef26aa8e03bf11b1..2baaf758030673f62af50c2756046f7e43e0d809 100644 |
--- a/composer.postload.js |
+++ b/composer.postload.js |
@@ -42,12 +42,13 @@ let lastRightClickEventIsMostRecent = false; |
function getFiltersForElement(element, callback) |
{ |
+ let src = element.getAttribute("src"); |
ext.backgroundPage.sendMessage( |
{ |
type: "composer.getFilters", |
tagName: element.localName, |
id: element.id, |
- src: element.getAttribute("src"), |
+ src: src && src.length <= 1000 ? src : null, |
style: element.getAttribute("style"), |
classes: Array.prototype.slice.call(element.classList), |
urls: getURLsFromElement(element), |