ep_real_time_chat 11.0.10 → 11.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ep_real_time_chat",
3
3
  "description": "Real time chat updates",
4
- "version": "11.0.10",
4
+ "version": "11.0.11",
5
5
  "author": "johnyma22 (John McLear) <john@mclear.co.uk>",
6
6
  "repository": {
7
7
  "type": "git",
package/static/js/main.js CHANGED
@@ -107,13 +107,13 @@ const sendChat = () => {
107
107
  };
108
108
 
109
109
  const getParam = (sname) => {
110
- let params = location.search.substr(location.search.indexOf('?') + 1);
110
+ let params = location.search.substring(location.search.indexOf('?') + 1);
111
111
  let sval = '';
112
112
  params = params.split('&');
113
113
  // split param and value into individual pieces
114
114
  for (let i = 0; i < params.length; i++) {
115
115
  const temp = params[i].split('=');
116
- if ([temp[0]] === sname) { sval = temp[1]; }
116
+ if (temp[0] === sname) { sval = temp[1]; }
117
117
  }
118
118
  return sval;
119
119
  };