nodebb-theme-peace
Advanced tools
Comparing version 2.0.0 to 2.0.1
{ | ||
"name": "nodebb-theme-peace", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"nbbpm": { | ||
@@ -5,0 +5,0 @@ "compatibility": "^3.0.0" |
@@ -34,5 +34,10 @@ "use strict"; | ||
const href= $('a[href="' + config.relative_path + payload.url + '"].navigation-link') | ||
href.parent().find('[component="nav/content/badge"]') | ||
.text(payload.count) | ||
.toggleClass('hidden', !payload.count); | ||
const el = href.parent().find('[component="nav/content/badge"]'); | ||
if (el.length) { | ||
el.text(payload.count) | ||
.toggleClass('hidden', !payload.count); | ||
$('[component="unread/badge"]') | ||
.text(payload.count) | ||
.toggleClass('hidden', !payload.count); | ||
} | ||
}); | ||
@@ -39,0 +44,0 @@ }); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
1996918
60
163
0