Merge pull request #13 from KevinRamharak/patch-4

Remove newlines and tabs in hologram
This commit is contained in:
Simon Fortier 2018-01-01 15:41:29 -05:00 committed by GitHub
commit aac9fb8f47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -345,7 +345,7 @@ function updateGameObject(object, responseObj) {
} else if (responseObj.holoMode === 2) {
//String
object.hologram = game.make.text(0, 32, responseObj.holoStr, {
object.hologram = game.make.text(0, 32, responseObj.holoStr.replace(/[\n|\t]/g, ''), {
fontSize: 27,
fill: color ? color : colorScheme.hologramFill,
stroke: colorScheme.hologramStroke,