drowsy-probius / twitch-icon-selector

Require template literals instead of string concatenation JS-0246
Anti-pattern
Minor
2 years ago2 years old
Unexpected string concatenation.
199  if(!inputArea || !iconSelectorRoot) return;
200  const text = inputArea.innerText.trimStart();
201  const isInputChanged = (currentChatText !== text);
202  currentChatText = text + "";203  if(e.key === "Escape")
204  {
205    try
Unexpected string concatenation.
254     */
255    try
256    {
257      currentChatText = text + "";258      makeStatsFromInput(currentChatText);
259      toggleSelector(false);
260    }
Unexpected string concatenation.
191chrome.runtime.onMessage.addListener((request, sender, sendResponse) => {
192  console.log('runtime.onMessage -- ' + 
193    ("tab" in sender ?
194    "from a content script:" + sender.tab.url :195    "from the extension"));
196
197  if(request.command === "refresh_all")
Unexpected string concatenation.
189
190
191chrome.runtime.onMessage.addListener((request, sender, sendResponse) => {
192  console.log('runtime.onMessage -- ' + 193    ("tab" in sender ?194    "from a content script:" + sender.tab.url :195    "from the extension"));196
197  if(request.command === "refresh_all")
198  {