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:
Rishi Gupta
2017-08-29 13:48:36 -07:00
committed by Tim Abbott
parent 0501570cd1
commit 09b4927578

View File

@@ -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;
}