From 2ec481b67375f3bb001a38d68115780955674b8f Mon Sep 17 00:00:00 2001 From: Jon Atkins Date: Sat, 4 Oct 2014 07:07:08 +0100 Subject: [PATCH] player tracker plugin: update to use new method to register interest in background COMM when needed fix #885 --- plugins/player-tracker.user.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/player-tracker.user.js b/plugins/player-tracker.user.js index acae2625..17f8d9fc 100644 --- a/plugins/player-tracker.user.js +++ b/plugins/player-tracker.user.js @@ -2,7 +2,7 @@ // @id iitc-plugin-player-tracker@breunigs // @name IITC Plugin: Player tracker // @category Layer -// @version 0.10.5.@@DATETIMEVERSION@@ +// @version 0.11.0.@@DATETIMEVERSION@@ // @namespace https://github.com/jonatkins/ingress-intel-total-conversion // @updateURL @@UPDATEURL@@ // @downloadURL @@DOWNLOADURL@@ @@ -104,8 +104,12 @@ window.plugin.playerTracker.zoomListener = function() { plugin.playerTracker.drawnTracesEnl.clearLayers(); plugin.playerTracker.drawnTracesRes.clearLayers(); ctrl.addClass('disabled').attr('title', 'Zoom in to show those.'); + //note: zoomListener is also called at init time to set up things, so we only need to do this in here + window.chat.backgroundChannelData('plugin.playerTracker', 'all', false); //disable this plugin's interest in 'all' COMM } else { ctrl.removeClass('disabled').attr('title', ''); + //note: zoomListener is also called at init time to set up things, so we only need to do this in here + window.chat.backgroundChannelData('plugin.playerTracker', 'all', true); //enable this plugin's interest in 'all' COMM } }