Skip to content

Commit

Permalink
Remove debug logging
Browse files Browse the repository at this point in the history
#build
  • Loading branch information
heyman committed Oct 29, 2024
1 parent 28a44b8 commit d9e4bc2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/components/Editor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -169,18 +169,18 @@
...mapActions(useEditorCacheStore, ["getEditor", "addEditor", "eachEditor"]),
loadBuffer(path) {
console.log("loadBuffer", path)
//console.log("loadBuffer", path)
if (this.editor) {
this.editor.hide()
}
let cachedEditor = this.getEditor(path)
if (cachedEditor) {
console.log("show cached editor")
//console.log("show cached editor")
this.editor = cachedEditor
toRaw(this.editor).show()
} else {
console.log("create new editor")
//console.log("create new editor")
try {
this.editor = new HeynoteEditor({
element: this.$refs.editor,
Expand Down
4 changes: 2 additions & 2 deletions src/editor/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -343,11 +343,11 @@ export class HeynoteEditor {
}

hide() {
console.log("hiding element", this.view.dom)
//console.log("hiding element", this.view.dom)
this.view.dom.style.setProperty("display", "none", "important")
}
show() {
console.log("showing element", this.view.dom)
//console.log("showing element", this.view.dom)
this.view.dom.style.setProperty("display", "")
triggerCursorChange(this.view)
}
Expand Down

0 comments on commit d9e4bc2

Please sign in to comment.