fix @player level tooltip - was looking for player with the '@' - which failed
This commit is contained in:
parent
05db7c6ca1
commit
3232aa5c10
@ -2,7 +2,7 @@
|
|||||||
// @id iitc-plugin-guess-player-levels@breunigs
|
// @id iitc-plugin-guess-player-levels@breunigs
|
||||||
// @name IITC plugin: guess player level
|
// @name IITC plugin: guess player level
|
||||||
// @category Info
|
// @category Info
|
||||||
// @version 0.5.1.@@DATETIMEVERSION@@
|
// @version 0.5.2.@@DATETIMEVERSION@@
|
||||||
// @namespace https://github.com/jonatkins/ingress-intel-total-conversion
|
// @namespace https://github.com/jonatkins/ingress-intel-total-conversion
|
||||||
// @updateURL @@UPDATEURL@@
|
// @updateURL @@UPDATEURL@@
|
||||||
// @downloadURL @@DOWNLOADURL@@
|
// @downloadURL @@DOWNLOADURL@@
|
||||||
@ -84,6 +84,7 @@ window.plugin.guessPlayerLevels.setLevelTitle = function(dom) {
|
|||||||
|
|
||||||
var el = $(dom);
|
var el = $(dom);
|
||||||
var nick = el.text();
|
var nick = el.text();
|
||||||
|
if (nick[0] == '@') nick = nick.substring(1);
|
||||||
|
|
||||||
var details = window.plugin.guessPlayerLevels.fetchLevelDetailsByPlayer(nick);
|
var details = window.plugin.guessPlayerLevels.fetchLevelDetailsByPlayer(nick);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user