removed unused variables (#900)

thanks!
This commit is contained in:
Benjamin Lörincz
2023-05-01 15:51:24 +02:00
committed by GitHub
parent 370685a326
commit 950982efa3

View File

@@ -1,14 +1,14 @@
chrome.runtime.onInstalled.addListener(({ reason, version }) => {
chrome.runtime.onInstalled.addListener(({ reason }) => {
if (reason === chrome.runtime.OnInstalledReason.INSTALL) {
showReadme();
}
});
chrome.action.onClicked.addListener((tab) => {
chrome.action.onClicked.addListener(() => {
showReadme();
});
function showReadme(info, tab) {
function showReadme() {
const url = chrome.runtime.getURL('readme.html');
chrome.tabs.create({ url });
}