PageSourceSearch

https://www.tanaza.com/wp-content/plugins/pwa-for-wp/assets/js/pwaforwp-video.js

js tanaza.com collected 2026-10-02 18:02:26 UTC 969 bytes, 34 lines download raw bytes

1(function(){
2	setTimeout(()=>{
3		if(window.matchMedia('(display-mode: standalone)').matches || window.matchMedia('(display-mode: fullscreen)').matches || window.matchMedia('(display-mode: minimal-ui)').matches) { 
4			if (!navigator.onLine) {
5				var video = document.getElementsByTagName("video");
6				Array.from(video).forEach(function(elm){
7					console.log("Each Loop",elm);
8					var src = elm.src;
9					console.log(src);
10					var ext = isVideo(src);
11					if(ext==true){
12						elm.setAttribute("src",'');
13						elm.parentElement.append('<p>MP4 video is not supported in service worker app</p>');
14					}
15				})
16	  		}
17		}
18
19		function isVideo(filename) {
20		    var ext = getExtension(filename);
21		    switch (ext.toLowerCase()) {
22		    case 'mp4':
23		        return true;
24		    }
25		    return false;
26		}
27
28		function getExtension(filename) {
29		    var parts = filename.split('.');
30		    return parts[parts.length - 1];
31		}
32
33	},1000)
34})()

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.