Ver código fonte

use const

tags/v1.0.3
Jonathan Cobb 4 anos atrás
pai
commit
cdf5b77653
1 arquivos alterados com 2 adições e 2 exclusões
  1. +2
    -2
      bubble-server/src/main/resources/bubble/rule/social/block/JsUserBlockerRuleDriver.js.hbs

+ 2
- 2
bubble-server/src/main/resources/bubble/rule/social/block/JsUserBlockerRuleDriver.js.hbs Ver arquivo

@@ -62,11 +62,11 @@ function {{JS_PREFIX}}_fetch_blocks (do_apply) {
const blocked_users = {};
const blocked_keywords = {};
for (let i=0; i<data.length; i++) {
let token = data[i];
const token = data[i];
if (token.startsWith('kw:')) {
blocked_keywords[token.substring('kw:'.length)] = true;
} else if (token.startsWith('list:')) {
let list = token.substring('list:'.length);
const list = token.substring('list:'.length);
// console.log('adding list: '+list);
{{JS_PREFIX}}_block_list(list);
} else {


Carregando…
Cancelar
Salvar