-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
Not sure what's wrong, but using this I'm only getting a document fragment object returned.
the basic example
<script src="MinecraftColorCodes.js"></script>
<script>
var yourMOTD = "§d§lnerd.nu§8: §6§oCreative Rev 28";
var newMOTD = yourMOTD.replaceColorCodes();
console.log(newMOTD);
<script>logs to the console as DocumentFragment(3) [ span, span, span ] with a ton of details in child elements.
The usage either isn't as straight-forward as the example, or it's not working as described. I don't know JS well enough to troubleshoot this. Any thoughts?
Metadata
Metadata
Assignees
Labels
No labels