Skip to content
Snippets Groups Projects
Commit 346651c6 authored by Rodrigo Nascimento's avatar Rodrigo Nascimento
Browse files

Use window.RocketChat for livechat

parent c95a64ab
No related merge requests found
...@@ -103,8 +103,7 @@ module.exports = { ...@@ -103,8 +103,7 @@ module.exports = {
'no-unreachable': 2, // disallow unreachable statements after a return, throw, continue, or break statement 'no-unreachable': 2, // disallow unreachable statements after a return, throw, continue, or break statement
'no-unused-vars': [2, { // disallow declaration of variables that are not used in the code 'no-unused-vars': [2, { // disallow declaration of variables that are not used in the code
'vars': 'all', 'vars': 'all',
'args': 'after-used', 'args': 'after-used'
'varsIgnorePattern': 'RocketChat'
}], }],
// 'array-bracket-spacing': [0, 'never'], // 'array-bracket-spacing': [0, 'never'],
......
...@@ -8,10 +8,8 @@ ...@@ -8,10 +8,8 @@
// h.parentNode.insertBefore(j, h); // h.parentNode.insertBefore(j, h);
// })(window, document, 'script', 'initRocket', 'http://localhost:5000/livechat'); // })(window, document, 'script', 'initRocket', 'http://localhost:5000/livechat');
// </script> // </script>
/* globals RocketChat:true */
/* exported RocketChat */
var RocketChat = (function(w) { window.RocketChat = (function(w) {
var config = {}; var config = {};
var widget; var widget;
var iframe; var iframe;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment