diff --git a/src/report-slop.ts b/src/report-slop.ts index 742f259..ed2f440 100644 --- a/src/report-slop.ts +++ b/src/report-slop.ts @@ -1,7 +1,7 @@ const API_URL: string = "https://api.slopfarmer.jack-case.pro" let access_token: string -const login_form = document.getElementById("login-form") +const login_form = document.getElementById("login-form") as HTMLFormElement if(login_form) { const login_status = document.getElementById("login-status") if (localStorage.getItem("accessToken")) { @@ -153,6 +153,8 @@ async function on_button_clicked_handler(tab: any) { const path = tab_url.pathname await insert_slop(domain, path) + + // @ts-ignore update_page_action_icon({frameId: 0, tabId: tab.id, url: tab.url}) } diff --git a/tsconfig.json b/tsconfig.json index e3de26a..4249e88 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,7 +3,8 @@ "compilerOptions": { "outDir": "scripts", "noImplicitAny": true, - "lib": ["ES2020", "DOM"], - "sourceMap": true + "lib": ["ES7", "DOM"], + "sourceMap": true, + "target": "esnext" } } \ No newline at end of file