Skip to content

Commit

Permalink
fix(lib): remove unneeded prettyprint
Browse files Browse the repository at this point in the history
  • Loading branch information
dshongphuc committed Sep 13, 2023
1 parent dc46517 commit 857ae97
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,7 @@ const app = createApp({
break
}
},
printOptions() {
let codeBlock = document.getElementById("codeSection")
codeBlock.classList.remove("prettyprinted")
codeBlock.innerHTML =
"options = " + JSON.stringify(this.options, null, 2) + "\nmagicMouse(options);"
},

changeEffect() {
document.body.style.cursor = "unset"
var cursorDOM = document.getElementById("magicMouseCursor")
Expand All @@ -67,16 +62,12 @@ const app = createApp({
pointerDOM.parentNode.removeChild(pointerDOM)
}
this.setSelectedEffect(this.selectedEffect)
this.printOptions()
magicMouse(this.options)
},
},
watch: {
selectedEffect() {
this.setSelectedEffect()
this.$nextTick(() => {
this.printOptions()
})
},
},
})
Expand Down

0 comments on commit 857ae97

Please sign in to comment.