diff options
author | Kyle Gunger <corechg@gmail.com> | 2020-09-18 12:19:44 -0400 |
---|---|---|
committer | Kyle Gunger <corechg@gmail.com> | 2020-09-18 12:19:44 -0400 |
commit | dbaf69557c0d6e648120b068fec1920b9391a24a (patch) | |
tree | f31f7b956455b1243d344d0c54d5b04e9e80fb3f /scripts/message.js | |
parent | e5515d3e1603339b4957421c9494ca619490a03d (diff) |
Update from local repo
Diffstat (limited to 'scripts/message.js')
-rw-r--r-- | scripts/message.js | 14 |
1 files changed, 0 insertions, 14 deletions
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}); - } -}; |