mirror of https://github.com/onweru/compose.git

weru
12.21.2020 00900562f8f8c4db0c306653b923061f9dffb0f3
assets/js/functions.js
@@ -110,10 +110,6 @@
function wrapText(text, context, wrapper = 'div') {
  let c = context.innerHTML;
  let index = c.indexOf(text);
  if(index >= 0) {
    const cc = `${c.charAt(0)}${c.substring(1,c.length)}`;
    index = cc.indexOf(Text);
  }
  if (index >= 0) {
    let stop = index + text.length;
    let s = c.substring(index,stop);