Skip to content

Commit

Permalink
Merge pull request #606 from nextcloud/backport/604/stable21
Browse files Browse the repository at this point in the history
[stable21] Fix monochrome icon detection for correct dark mode invert
  • Loading branch information
nickvergessen authored Jul 3, 2021
2 parents b5174af + 462c007 commit 61eaa4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ $(function(){
activity.link = '';
}

var monochromeIcon = activity.type !== 'file_created' && activity.type !== 'file_deleted' && activity.type !== 'favorite';
var monochromeIcon = activity.type !== 'file_created' && activity.type !== 'file_deleted' && activity.type !== 'favorite' && !activity.icon.endsWith('-color.svg');

var content = ''
+ '<div class="activity box" data-activity-id="' + activity.activity_id + '">' + "\n"
Expand Down

0 comments on commit 61eaa4a

Please sign in to comment.