Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <html manifest="appcache-ordering.manifest"> | |
| 2 <script> | |
| 3 var handled = false; | |
| 4 | |
| 5 function installComplete() | |
|
falken
2014/10/21 01:28:31
snake_case for consistency
| |
| 6 { | |
| 7 if (handled) | |
| 8 return; | |
| 9 handled = true; | |
| 10 window.parent.notifyAppCacheInstalled(true); | |
| 11 } | |
| 12 | |
| 13 function installFailed() | |
| 14 { | |
| 15 if (handled) | |
| 16 return; | |
| 17 handled = true; | |
| 18 window.parent.notifyAppCacheInstalled(false); | |
| 19 } | |
| 20 | |
| 21 applicationCache.oncached = installComplete; | |
| 22 applicationCache.onnoupdate = installComplete; | |
| 23 applicationCache.onupdateready = installFailed; | |
| 24 applicationCache.onerror = installFailed; | |
| 25 applicationCache.onobsolete =installFailed; | |
|
falken
2014/10/21 01:28:31
nit: missing space after =
| |
| 26 | |
| 27 </script> | |
| 28 </html> | |
| OLD | NEW |