From 2ac8510c6d1df70ca21c6d7aef79eb751d6ffb10 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Tue, 28 Jun 2016 13:04:30 -0400 Subject: [PATCH] remove srcset attr --- js/app.js | 2 +- js/custom/pageSetup.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/js/app.js b/js/app.js index 1d99849..887f255 100644 --- a/js/app.js +++ b/js/app.js @@ -90,7 +90,7 @@ $(document).ready(function () { console.debug(img_src); $(this).css("height", 175).css("width", 'auto'); $(this).css("background", 'url(' + img_src + ') no-repeat center center').css("background-size", "cover"); - $(this).removeAttr("src"); + $(this).removeAttr("src").removeAttr("srcset"); }); }); diff --git a/js/custom/pageSetup.js b/js/custom/pageSetup.js index 1a1e334..505007d 100644 --- a/js/custom/pageSetup.js +++ b/js/custom/pageSetup.js @@ -81,7 +81,7 @@ $(document).ready(function () { console.debug(img_src); $(this).css("height", 175).css("width", 'auto'); $(this).css("background", 'url(' + img_src + ') no-repeat center center').css("background-size", "cover"); - $(this).removeAttr("src"); + $(this).removeAttr("src").removeAttr("srcset"); }); }); -- 2.17.1