Skip to content

Commit

Permalink
fix changelog notification condition to use Number comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
6a67 committed Feb 13, 2025
1 parent 3629380 commit 1f69bd5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions script.user.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ==UserScript==
// @name JPDB Userscript (6a67)
// @namespace http://tampermonkey.net/
// @version 0.1.197
// @version 0.1.198
// @description Script for JPDB that adds some styling and functionality
// @match *://jpdb.io/*
// @grant GM_addStyle
Expand Down Expand Up @@ -4545,7 +4545,7 @@

const latestDate = await fetchChangelog();

if (STATE.lastChangelogDate && STATE.lastChangelogDate > 0 && latestDate && latestDate !== STATE.lastChangelogDate) {
if (STATE.lastChangelogDate && STATE.lastChangelogDate > 0 && latestDate && Number(latestDate) !== STATE.lastChangelogDate) {
GM_notification({
title: 'New JPDB Changelog',
text: 'There is a new changelog available on JPDB',
Expand Down

0 comments on commit 1f69bd5

Please sign in to comment.