mirror of
https://github.com/discourse/discourse-custom-header-links.git
synced 2025-03-09 14:18:22 +00:00
Add debug info for current user
This commit is contained in:
parent
a99331c590
commit
15146c44f3
@ -1,6 +1,9 @@
|
||||
<script type="text/discourse-plugin" version="0.8.20">
|
||||
const customHeaderLinks = settings.Custom_header_links;
|
||||
const linksPosition = (settings.links_position === "right") ? "header-buttons:before" : "home-logo:after";
|
||||
const user = Discourse.User.current();
|
||||
|
||||
console.log(user);
|
||||
|
||||
if (!customHeaderLinks.length) return;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user