Skip to content

Commit

Permalink
remove debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
tynatsuhara committed Mar 1, 2024
1 parent 0c65a7a commit 6cb466d
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 7 deletions.
2 changes: 0 additions & 2 deletions src/utils/FilingCabinet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ export const FilingCabinet = Object.freeze({
newFrame: Doc.newFrame(),
timestamp: new Date().getTime(),
}
console.log(`saving document ${Doc.name()} data: ${JSON.stringify(data)}`)
await localforage.setItem(Doc.name()!, data)
Doc.setHasUnsavedChanges(false)
},
Expand All @@ -30,7 +29,6 @@ export const FilingCabinet = Object.freeze({
Doc.setCaretPosition(data.caret)
Doc.setNewFrame(data.newFrame)
Doc.recenter()
console.log(`loaded document ${Doc.name()} data: ${data}`)
},

remove: async (name: string): Promise<void> => localforage.removeItem(name),
Expand Down
2 changes: 0 additions & 2 deletions src/utils/Fullscreen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,10 @@ export const createFullscreenSignal = (): [Accessor<boolean>, (full: boolean) =>
})
.then(() => {
setFullscreen(true)
console.log('fullscreen enabled')
})
} else {
return document.exitFullscreen().then(() => {
setFullscreen(false)
console.log('fullscreen disabled')
})
}
}
Expand Down
3 changes: 0 additions & 3 deletions src/utils/UiBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ export const UiBox = (props: {
createEffect(() => {
if (props.isOpen()) {
setGlobalOpen(props.id)
console.log(`${props.id} opened`)
} else if (!props.isOpen() && globalOpen() === props.id) {
setGlobalOpen(null)
}
Expand All @@ -28,8 +27,6 @@ export const UiBox = (props: {
if (props.isOpen() && !ref?.matches(':hover')) {
props.setOpen(false)
setGlobalOpen(null)
console.log(`${props.id} closed`)
console.log(e)
}
})

Expand Down

0 comments on commit 6cb466d

Please sign in to comment.