resolved some more type issues
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
const API_URL: string = "https://api.slopfarmer.jack-case.pro"
|
const API_URL: string = "https://api.slopfarmer.jack-case.pro"
|
||||||
let access_token: string
|
let access_token: string
|
||||||
|
|
||||||
const login_form = document.getElementById("login-form")
|
const login_form = document.getElementById("login-form") as HTMLFormElement
|
||||||
if(login_form) {
|
if(login_form) {
|
||||||
const login_status = document.getElementById("login-status")
|
const login_status = document.getElementById("login-status")
|
||||||
if (localStorage.getItem("accessToken")) {
|
if (localStorage.getItem("accessToken")) {
|
||||||
@@ -153,6 +153,8 @@ async function on_button_clicked_handler(tab: any) {
|
|||||||
const path = tab_url.pathname
|
const path = tab_url.pathname
|
||||||
|
|
||||||
await insert_slop(domain, path)
|
await insert_slop(domain, path)
|
||||||
|
|
||||||
|
// @ts-ignore
|
||||||
update_page_action_icon({frameId: 0, tabId: tab.id, url: tab.url})
|
update_page_action_icon({frameId: 0, tabId: tab.id, url: tab.url})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,8 @@
|
|||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"outDir": "scripts",
|
"outDir": "scripts",
|
||||||
"noImplicitAny": true,
|
"noImplicitAny": true,
|
||||||
"lib": ["ES2020", "DOM"],
|
"lib": ["ES7", "DOM"],
|
||||||
"sourceMap": true
|
"sourceMap": true,
|
||||||
|
"target": "esnext"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user