mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
Fix module check.
This commit is contained in:
parent
5dbd294166
commit
6b4080b042
1 changed files with 5 additions and 3 deletions
|
@ -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.
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue