1if ('serviceWorker' in navigator) { 2 navigator.serviceWorker.register('/sw.js'); 3} 4jQuery(function($){ 5 $('#install-app-close').click(function(){$("#install-app-div").hide('slow')}); 6}); 7 8function getPWADisplayMode() { 9 const isStandalone = window.matchMedia('(display-mode: standalone)').matches; 10 if (document.referrer.startsWith('android-app://')) { 11 return 'twa'; 12 } else if (navigator.standalone || isStandalone) { 13 return 'standalone'; 14 } 15 return 'browser'; 16}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.