diff --git a/lib/plugins/userIDB.mjs b/lib/plugins/userIDB.mjs index 5ee2d1067..c00c0137e 100644 --- a/lib/plugins/userIDB.mjs +++ b/lib/plugins/userIDB.mjs @@ -1,14 +1,22 @@ export function userIDB(plugin, mapview) { + if (!mapp.user?.email) { + + console.warn(`The userIDB plugin requires a mapp.user`) + return; + } + // Find the btnColumn element. const btnColumn = document.getElementById('mapButton'); if (!btnColumn) return; + plugin.title ??= "Update userIDB locale" + // Append the plugin btn to the btnColumn. btnColumn.append(mapp.utils.html.node`