From c4c0119f667105f7a8a51e5eeaafafec3349f622 Mon Sep 17 00:00:00 2001 From: Jack Case Date: Thu, 30 Oct 2025 22:33:16 +0000 Subject: [PATCH] resolved some more type issues --- src/report-slop.ts | 4 +++- tsconfig.json | 5 +++-- 2 files changed, 6 insertions(+), 3 deletions(-) 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