mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 21:43:21 +00:00
hotspots.js: Fix hotspots not appearing.
The original had two bugs in this line of code that cancelled each other
out. 4d0f304 fixed one, causing hotspots to no longer appear. This commit
fixes the second.
This commit is contained in:
@@ -54,7 +54,7 @@ exports.post_hotspot_as_read = function (hotspot_name) {
|
||||
};
|
||||
|
||||
function place_icon(hotspot) {
|
||||
if ($(hotspot.location.element).length !== 0) {
|
||||
if ($(hotspot.location.element).length === 0) {
|
||||
$('#hotspot_' + hotspot.name + '_icon').css('display', 'none');
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user