Skip to content

Commit

Permalink
apng extension fix (fix #1076)
Browse files Browse the repository at this point in the history
  • Loading branch information
matheod committed May 16, 2014
1 parent a209d89 commit d227e28
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/modules/styleTweaks.js
Original file line number Diff line number Diff line change
Expand Up @@ -559,6 +559,7 @@ modules['styleTweaks'] = {

var subredditStyleSheet = this.head.querySelector('link[title=applied_subreddit_stylesheet]');
if (!subredditStyleSheet) subredditStyleSheet = this.head.querySelector('style[title=applied_subreddit_stylesheet]');
if (!subredditStyleSheet) subredditStyleSheet = this.head.querySelector('style[data-apng-original-href]'); // apng extension fix (see #1076)
if ((subredditStyleSheet) && (!subreddit || (subreddit == this.curSubReddit))) {
subredditStyleSheet.parentNode.removeChild(subredditStyleSheet);
}
Expand Down

0 comments on commit d227e28

Please sign in to comment.