From 85bd5abd065c8da088a3fd1ae1051d0aab76c937 Mon Sep 17 00:00:00 2001 From: sienori Date: Fri, 3 May 2019 18:56:12 +0900 Subject: [PATCH] Revert "Add debug log to insert / remove element" This reverts commit 8015eacce75fb54936b0aa858b46a09377dc7ee9. --- src/content/index.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/content/index.js b/src/content/index.js index 921469d..9ef62e8 100644 --- a/src/content/index.js +++ b/src/content/index.js @@ -2,9 +2,6 @@ import React from "react"; import ReactDOM from "react-dom"; import browser from "webextension-polyfill"; import TranslateContainer from "./components/TranslateContainer"; -import log from "loglevel"; - -const logDir = "constent/index"; let isEnabled = true; const handleMessage = async request => { @@ -32,7 +29,6 @@ browser.runtime.onMessage.addListener(handleMessage); const removeElement = () => { const element = document.getElementById("simple-translate"); if (!element) return; - log.log(logDir, "removeElement()"); ReactDOM.unmountComponentAtNode(element); element.parentNode.removeChild(element); @@ -43,7 +39,6 @@ let isFirst = true; const insertElement = () => { const element = document.getElementById("simple-translate"); if (element) return; - log.log(logDir, "insertElement()"); document.body.insertAdjacentHTML("beforeend", "
"); ReactDOM.render(