added response to content listener

This commit is contained in:
Lauchmelder 2022-03-20 17:16:36 +01:00
parent b3b47b464f
commit 1f5452b98a
No known key found for this signature in database
GPG key ID: C2403C69D78F011D
3 changed files with 4 additions and 2 deletions

View file

@ -1,7 +1,7 @@
{
"name": "FuriKani",
"description": "Removes furigana on websites based on your WaniKani level",
"version": "0.5",
"version": "0.5.1",
"manifest_version": 3,
"action": {
"default_popup": "popup.html"

View file

@ -6,7 +6,7 @@
<body>
<header>
<h1>FuriKani</h1>
<h2>v0.5</h2>
<h2>v0.5.1</h2>
</header>
<div id="token-area">

View file

@ -83,6 +83,8 @@ chrome.runtime.onMessage.addListener((msg, sender, sendResponse) => {
vocabStyleSheet.innerHTML = data.enabledVocab ? vocabStyle : ""
kanjiStyleSheet.innerHTML = data.enabledKanji ? kanjiStyle : ""
sendResponse(true)
})
}