Commit d92fcaa9 authored by Dave Z's avatar Dave Z

af_comics: Workaround for GoComics' lazy loading images in srcset.

parent fc756975
......@@ -126,6 +126,15 @@ class Af_Comics extends Plugin {
if ($node) {
if ($node->hasAttribute("srcset") && preg_match("|/transparent\.png$|", $node->getAttribute("srcset"))) {
if ($node->hasAttribute("data-srcset")) {
$node->setAttribute("srcset", $node->getAttribute("data-srcset"));
} elseif ($node->hasAttribute("src")) {
$tpl->setVariable('ARTICLE_ID', $article_link, true);
$tpl->setVariable('ARTICLE_LINK', $article_link, true);
$tpl->setVariable('ARTICLE_TITLE', date('l, F d, Y'), true);
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment