From b8c91f08adc7bdb0095fb61a59bc03f0d568f478 Mon Sep 17 00:00:00 2001 From: Kyle Gunger Date: Sat, 16 Oct 2021 17:12:32 -0400 Subject: [Formatting] Tabs instead of spaces --- scripts/socket/message.js | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'scripts/socket/message.js') diff --git a/scripts/socket/message.js b/scripts/socket/message.js index 044027d..0288cbc 100644 --- a/scripts/socket/message.js +++ b/scripts/socket/message.js @@ -1,18 +1,18 @@ 'use strict'; class Message{ - constructor (type, data) - { - this.t = type; - this.d = data; - } + constructor (type, data) + { + this.t = type; + this.d = data; + } - stringify () - { - var dat = this.d - if(typeof dat !== "string"){ - dat = JSON.stringify(dat); - } - return JSON.stringify({type: this.t, data: dat}); - } + stringify () + { + var dat = this.d + if(typeof dat !== "string"){ + dat = JSON.stringify(dat); + } + return JSON.stringify({type: this.t, data: dat}); + } } -- cgit v1.2.3