mirror of
https://github.com/flynx/Slang.git
synced 2025-10-28 10:10:07 +00:00
...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
e46a555705
commit
3ac881c3aa
@ -2,6 +2,6 @@ CACHE MANIFEST
|
||||
# Last Modified: 2017 Apr 13
|
||||
|
||||
CACHE:
|
||||
simplesnake.html
|
||||
simplesnake.css
|
||||
simplesnake.js
|
||||
simplesnake.html
|
||||
|
||||
@ -375,6 +375,15 @@ function setup(snake, timer, size){
|
||||
//document.addEventListener('touchstart', makeTapHandler(snake))
|
||||
document.addEventListener('mousedown', makeTapHandler(snake))
|
||||
HANDLER_SET = true
|
||||
|
||||
if(window.applicationCache){
|
||||
applicationCache.update()
|
||||
|
||||
if(applicationCache.status == applicationCache.UPDATEREADY){
|
||||
console.log('NEW VERSION')
|
||||
applicationCache.swapCache()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return snake
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user