Fixed replace
This commit is contained in:
parent
b87e0781f6
commit
2fc35436a4
|
@ -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">';
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue