mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2024-12-13 16:06: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,
|
||||
clipboardJS: null,
|
||||
lazyLoad: null,
|
||||
lazyLoadTimestamp: null
|
||||
lazyLoad: null
|
||||
}
|
||||
|
||||
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 = () => {
|
||||
page.checkIfPublic()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user