Fixed handleGesture by moving it up, actually this time
This commit is contained in:
parent
1c0ccfc6bf
commit
95055cc857
|
@ -68,21 +68,6 @@ let indiv = false
|
|||
let mobile = false
|
||||
let selectLatestNote = false
|
||||
|
||||
// Init the note box
|
||||
document.addEventListener("DOMContentLoaded", function() {
|
||||
pell.init({
|
||||
element: pellAttacher,
|
||||
onChange: html => console.log(html),
|
||||
defaultParagraphSeparator: 'br',
|
||||
styleWithCSS: false,
|
||||
classes: {
|
||||
actionbar: 'pell-actionbar',
|
||||
button: 'pell-button',
|
||||
content: 'pell-content',
|
||||
selected: 'pell-button-selected'
|
||||
}
|
||||
})
|
||||
let noteBox = document.getElementsByClassName("pell-content")[0]
|
||||
|
||||
function handleGesture() {
|
||||
if (indiv) {
|
||||
|
@ -110,6 +95,22 @@ document.addEventListener("DOMContentLoaded", function() {
|
|||
}
|
||||
}
|
||||
|
||||
// Init the note box
|
||||
document.addEventListener("DOMContentLoaded", function() {
|
||||
pell.init({
|
||||
element: pellAttacher,
|
||||
onChange: html => console.log(html),
|
||||
defaultParagraphSeparator: 'br',
|
||||
styleWithCSS: false,
|
||||
classes: {
|
||||
actionbar: 'pell-actionbar',
|
||||
button: 'pell-button',
|
||||
content: 'pell-content',
|
||||
selected: 'pell-button-selected'
|
||||
}
|
||||
})
|
||||
let noteBox = document.getElementsByClassName("pell-content")[0]
|
||||
|
||||
if (/Android|iPhone|iPod/i.test(navigator.userAgent)) {
|
||||
mobile = true
|
||||
noteBoxDiv.classList.add("mobile")
|
||||
|
|
Reference in New Issue