This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var lib = require("./manifest.js"); | |
lib.mkmanifest({ | |
filename : "cache" | |
,path : "../coffee" | |
,version : "02" | |
,exclude : ['/.DS_Store', '/.htaccess', '/cache.manifest'] | |
/* | |
,network : ['/connect.php','/read.php'] | |
,fallback : ['/offline.html'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Mobile Safari in standalone mode | |
if(("standalone" in window.navigator) && window.navigator.standalone){ | |
window.addEventListener("load",function() { | |
links = document.getElementsByTagName('a'); | |
for (var i=0; i < links.length; i++) | |
{ | |
// Don't do this for javascript: links |