Index: composer.postload.js |
diff --git a/composer.postload.js b/composer.postload.js |
index dcf808b85a786c809b788926ef26aa8e03bf11b1..77fe8c911ea9d2585da4a5d9cbb15161d114841d 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, |
Sebastian Noack
2016/10/14 17:32:32
This expression is quite weird. Besides that it is
kzar
2016/10/14 17:48:58
Yea you're right, it was pretty weird to be fair :
|
style: element.getAttribute("style"), |
classes: Array.prototype.slice.call(element.classList), |
urls: getURLsFromElement(element), |