Skip to content
This repository has been archived by the owner on Jul 26, 2023. It is now read-only.

Commit

Permalink
revert upstream change
Browse files Browse the repository at this point in the history
might fix broken tab function?
  • Loading branch information
wicknix committed Apr 7, 2022
1 parent 2ecdabc commit d7753c2
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions browser/base/content/tab-content.js
Expand Up @@ -399,16 +399,16 @@ var AboutReaderListener = {
// Post-load fixups can go here.

// TenFourFox issue 654: defeat lozad.js lazy image loading.
Array.forEach(content.document.getElementsByTagName('img'),
function(i) {
try {
// Convert data-src to src.
if (i.getAttribute("data-src")) {
i.src = i.getAttribute("data-src");
i.setAttribute("data-loaded") = "true";
}
} catch(e) { }
});
// Array.forEach(content.document.getElementsByTagName('img'),
// function(i) {
// try {
// // Convert data-src to src.
// if (i.getAttribute("data-src")) {
// i.src = i.getAttribute("data-src");
// i.setAttribute("data-loaded") = "true";
// }
// } catch(e) { }
// });

// Do this last.
this.updateReaderButton();
Expand Down

0 comments on commit d7753c2

Please sign in to comment.