From dbaf69557c0d6e648120b068fec1920b9391a24a Mon Sep 17 00:00:00 2001 From: Kyle Gunger Date: Fri, 18 Sep 2020 12:19:44 -0400 Subject: Update from local repo --- scripts/message.js | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 scripts/message.js (limited to 'scripts/message.js') diff --git a/scripts/message.js b/scripts/message.js deleted file mode 100644 index 5e821c4..0000000 --- a/scripts/message.js +++ /dev/null @@ -1,14 +0,0 @@ -function Message(type, data){ - this.t = type; - this.d = data; -} - -Message.prototype = { - stringify: function(){ - var dat = this.d - if(typeof dat !== "string"){ - dat = JSON.stringify(dat); - } - return JSON.stringify({type: this.t, data: dat}); - } -}; -- cgit v1.2.3