Fix module check.

This commit is contained in:
Kasen IO 2020-02-25 18:08:07 -05:00
parent 5dbd294166
commit 6b4080b042

View file

@ -106,6 +106,8 @@ function handleAvatarNametagMode(newAvatarNameTagMode) {
var nameTag = startup();
// if (module) {
// module.exports = nameTag;
// }
try {
module.exports = nameTag;
} catch (e) {
// module doesn't exist when script run outside of simplified UI.
}