chore: cleanup
This commit is contained in:
@@ -66,11 +66,9 @@ export function unbindAction(action: HoppAction, handler: () => void) {
|
||||
export function defineActionHandler(action: HoppAction, handler: () => void) {
|
||||
onMounted(() => {
|
||||
bindAction(action, handler)
|
||||
console.log(`Action bound: ${action}`)
|
||||
})
|
||||
|
||||
onBeforeUnmount(() => {
|
||||
unbindAction(action, handler)
|
||||
console.log(`Action unbound: ${action}`)
|
||||
})
|
||||
}
|
||||
|
||||
@@ -94,8 +94,6 @@ async function toggleStar(entry: any, col: HistoryFBCollections) {
|
||||
if (currentUser$.value == null)
|
||||
throw new Error("User not logged in to toggle star")
|
||||
|
||||
console.log(entry)
|
||||
|
||||
try {
|
||||
await firebase
|
||||
.firestore()
|
||||
@@ -207,7 +205,3 @@ export function initHistory() {
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
restHistoryStore.dispatches$.subscribe((state) => {
|
||||
console.log(state)
|
||||
})
|
||||
|
||||
@@ -76,7 +76,6 @@ export function startRequestSync(): Subscription {
|
||||
)
|
||||
.subscribe(() => {
|
||||
// NOTE: This subscription should be kept
|
||||
console.log("synced request")
|
||||
})
|
||||
|
||||
return sub
|
||||
|
||||
@@ -158,12 +158,10 @@ export function useKeybindingDisabler() {
|
||||
// TODO: Move to a lock based system that keeps the bindings disabled until all locks are lifted
|
||||
const disableKeybindings = () => {
|
||||
keybindingsEnabled = false
|
||||
console.log("Keybinds disabled by a component")
|
||||
}
|
||||
|
||||
const enableKeybindings = () => {
|
||||
keybindingsEnabled = true
|
||||
console.log("Keybinds enabled by a component")
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
@@ -8,7 +8,6 @@ export const lenses = [jsonLens, imageLens, htmlLens, xmlLens, rawLens]
|
||||
|
||||
export function getSuitableLenses(response) {
|
||||
const contentType = response.headers.find((h) => h.key === "content-type")
|
||||
console.log(contentType)
|
||||
|
||||
if (!contentType) return [rawLens]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user