Fixed replace

This commit is contained in:
Jiiks 2016-08-15 02:03:18 +03:00
parent b87e0781f6
commit 2fc35436a4
2 changed files with 3 additions and 2 deletions

View File

@ -994,7 +994,8 @@ PublicServers.prototype.loadServers = function(dataset, search, clear) {
hits.forEach(function(hit) { hits.forEach(function(hit) {
var source = hit._source; var source = hit._source;
var icode = self.escape(source.invite_code.replace(/ /g,'')); var icode = source.invite_code.replace(/ /g,'');
icode = self.escape(icode);
var html = '<div class="server-row">'; var html = '<div class="server-row">';
html += '<div class="server-icon" style="background-image:url(' + self.escape(source.icon) + ')"></div>'; html += '<div class="server-icon" style="background-image:url(' + self.escape(source.icon) + ')"></div>';
html += '<div class="server-info server-name">'; html += '<div class="server-info server-name">';

2
js/main.min.js vendored

File diff suppressed because one or more lines are too long