Skip to content

Commit

Permalink
Change: changedetection.io widget dont count diff if viewed (gethomep…
Browse files Browse the repository at this point in the history
  • Loading branch information
xconverge authored Nov 29, 2023
1 parent 251881a commit a3e00e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/widgets/changedetectionio/component.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default function Component({ service }) {
let diffsDetected = 0;

Object.keys(data).forEach((key) => {
if (data[key].last_changed > 0 && data[key].last_checked === data[key].last_changed) {
if (data[key].last_changed > 0 && data[key].last_checked === data[key].last_changed && !data[key].viewed) {
diffsDetected += 1;
}
});
Expand Down

0 comments on commit a3e00e9

Please sign in to comment.