Update 0BDFDB.plugin.js

This commit is contained in:
Mirco Wittrien 2021-05-23 13:42:45 +02:00 committed by GitHub
parent 2e3d2f1549
commit 8c2e84b13a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -1551,6 +1551,7 @@ module.exports = (_ => {
var Tooltips = [];
BDFDB.TooltipUtils = {};
BDFDB.TooltipUtils.create = function (anker, text, config = {}) {
if (!text && !config.guild) return null;
let itemLayerContainer = document.querySelector(BDFDB.dotCN.appmount + " > " + BDFDB.dotCN.itemlayercontainer);
if (!itemLayerContainer || !Node.prototype.isPrototypeOf(anker) || !document.contains(anker)) return null;
let id = BDFDB.NumberUtils.generateId(Tooltips);