-
hey, I've been doing some dabbling in the storyteller mod and am building a ToC that allows me to inject html in the journal page titles so when the Table of Contents builds it is detecting the language but it's not obscuring it for the players. (I know this is a security risk because a player could inject something malicious into the journal page title, but I trust my players so I'm not worried about that.) |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
ok, I injected it in the sidebar easily enough, but I do also have the same problem, it's not detected by polyglot |
Beta Was this translation helpful? Give feedback.
-
maybe init() hook on sidebar or journal directory? |
Beta Was this translation helpful? Give feedback.
-
hmmm, that didn't work, I think the ToC is a race condition, maybe the same for the journaldirectory, I think technically it's rendered before it's populates... |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
ok, got half of it :D, I think I can manage from here
{{{this.name}}}
add another hook to polyglot module logic.js
Hooks.on("changeSidebarTab", this.uglyEverything.bind(this));
add a function for that event to map to: