mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2024-12-14 00:16:21 +00:00
Updated home.js
Removed unused lines from experimentations.
This commit is contained in:
parent
61e1896945
commit
31968ada06
@ -15,8 +15,7 @@ const page = {
|
|||||||
|
|
||||||
dropzone: null,
|
dropzone: null,
|
||||||
clipboardJS: null,
|
clipboardJS: null,
|
||||||
lazyLoad: null,
|
lazyLoad: null
|
||||||
lazyLoadTimestamp: null
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const imageExtensions = ['.webp', '.jpg', '.jpeg', '.bmp', '.gif', '.png']
|
const imageExtensions = ['.webp', '.jpg', '.jpeg', '.bmp', '.gif', '.png']
|
||||||
@ -304,16 +303,6 @@ window.addEventListener('paste', event => {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
page.lazyLoadUpdate = () => {
|
|
||||||
// console.log(page.lazyLoadTimestamp)
|
|
||||||
if (!page.lazyLoadTimestamp) { page.lazyLoadTimestamp = 0 }
|
|
||||||
if (Date.now() - page.lazyLoadTimestamp >= 500) {
|
|
||||||
console.log('update() called')
|
|
||||||
page.lazyLoad.update()
|
|
||||||
page.lazyLoadTimestamp = Date.now()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
window.onload = () => {
|
window.onload = () => {
|
||||||
page.checkIfPublic()
|
page.checkIfPublic()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user