Skip to content

Commit

Permalink
chore: more clear code
Browse files Browse the repository at this point in the history
  • Loading branch information
PleahMaCaka committed Feb 21, 2023
1 parent 6c13b51 commit fb9c94f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/content/content.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@ import { initTranslator } from "./translator/AddTranslator";

console.log("TavernAI Translator: content loaded")

const textarea = document.getElementById("send_textarea")

if (!textarea) console.log("TavernAI Translator: textarea not found")
if (document.getElementById("send_textarea"))
console.log("TavernAI Translator: textarea found")
else
console.log("TavernAI Translator: textarea not found")

window.addEventListener("load", () => {
console.log("TavernAI Translator: init translator")
initTranslator()
})
})

0 comments on commit fb9c94f

Please sign in to comment.