diff --git a/cdn/pwabuilder-serviceworkers/1.1.1/serviceWorker2/src/pwabuilder-sw.fixed.js b/cdn/pwabuilder-serviceworkers/1.1.1/serviceWorker2/src/pwabuilder-sw.fixed.js index f039fff..e6aab06 100644 --- a/cdn/pwabuilder-serviceworkers/1.1.1/serviceWorker2/src/pwabuilder-sw.fixed.js +++ b/cdn/pwabuilder-serviceworkers/1.1.1/serviceWorker2/src/pwabuilder-sw.fixed.js @@ -39,6 +39,14 @@ self.addEventListener("fetch", function (event) { }; event.waitUntil(updateCache(event.request)); + + /*! + * https://github.com/meanbee/magento-meanbee-pwa/issues/20#issuecomment-497626347 + */ + + if (event.request.cache === "only-if-cached" && event.request.mode !== "same-origin") { + return; + } event.respondWith( fetch(event.request).catch (function (error) { diff --git a/libs/lovespy-muicss/js/bundle.js b/libs/lovespy-muicss/js/bundle.js index 845dd1c..34f49fa 100644 --- a/libs/lovespy-muicss/js/bundle.js +++ b/libs/lovespy-muicss/js/bundle.js @@ -1924,7 +1924,7 @@ WheelIndicator, Ya*/ }; if (instagramMedia) { if (!root.instgrm) { - var jsUrl = "https://www.instagram.com/embed.js"; + var jsUrl = "https://platform.instagram.com/en_US/embeds.js"; var load; load = new loadJsCss([jsUrl], initScript); } else { diff --git a/libs/lovespy-muicss/js/bundle.min.js b/libs/lovespy-muicss/js/bundle.min.js index e8ec7a7..3526a5b 100644 --- a/libs/lovespy-muicss/js/bundle.min.js +++ b/libs/lovespy-muicss/js/bundle.min.js @@ -1 +1 @@ -!function(m,f){"use strict";m.console||(m.console={});var e,n,a,o,r,s,i,l,c=m.console,d=function(){},p=["memory"],u=["assert,clear,count,debug,dir,dirxml,error,exception,group,","groupCollapsed,groupEnd,info,log,markTimeline,profile,profiles,profileEnd,","show,table,time,timeEnd,timeline,timelineEnd,timeStamp,trace,warn"];for(u.join("").split(",");e=p.pop();)c[e]||(c[e]={});for(;n=u.pop();)c[n]||(c[n]=d);e=n=d=p=u=null,m.supportsPassive=function(){var e=!1;try{var t=Object.defineProperty&&Object.defineProperty({},"passive",{get:function(){e=!0}});m.addEventListener("test",function(){},t)}catch(e){}return e}(),m.supportsSvgSmilAnimation=(a={}.toString,!!f.createElementNS&&/SVGAnimate/.test(a.call(f.createElementNS("http://www.w3.org/2000/svg","animate")))||""),m.supportsCanvas=!(!(o=f.createElement("canvas")).getContext||!o.getContext("2d")),m.hasWheel="onwheel"in f.createElement("div")||void 0!==f.onmousewheel||"",m.hasTouch="ontouchstart"in f.documentElement||"",m.needsPolyfills=!String.prototype.startsWith||!supportsPassive||!m.requestAnimationFrame||!m.matchMedia||void 0===m.Element&&!("dataset"in f.documentElement)||!("classList"in f.createElement("_"))||f.createElementNS&&!("classList"in f.createElementNS("http://www.w3.org/2000/svg","g"))||m.attachEvent&&!m.addEventListener||!("onhashchange"in m)||!Array.prototype.indexOf||!m.Promise||!m.fetch||!f.querySelectorAll||!f.querySelector||!Function.prototype.bind||Object.defineProperty&&Object.getOwnPropertyDescriptor&&Object.getOwnPropertyDescriptor(Element.prototype,"textContent")&&!Object.getOwnPropertyDescriptor(Element.prototype,"textContent").get||!(void 0!==m.localStorage&&void 0!==m.sessionStorage)||!m.WeakMap||!m.MutationObserver,m.getHumanDate=(r=new Date,s=r.getDate(),i=r.getFullYear(),l=r.getMonth(),s<10&&(s="0"+s),(l+=1)<10&&(l="0"+l),i+"-"+l+"-"+s);var g,h,v,y=function(o,r){return function(e,t,n,a){e[o]?e[o](t,n,a):e[r]&&e[r]("on"+t,n)}};m.addListener=y("addEventListener","attachEvent"),m.removeListener=y("removeEventListener","detachEvent"),m.getByClass=function(e,t){if(f.getElementsByClassName)return e?e.getElementsByClassName(t):"";var n,a,o,r=(e||f.body).getElementsByTagName("*"),s=[],i=new RegExp("\\b"+t+"\\b");for(a=0,o=r.length;a
',(f.body||"").appendChild(a));return{show:function(){return a.style.display="block"},hide:function(e,t){var n=setTimeout(function(){clearTimeout(n),n=null,setDisplayNone(a),e&&"function"==typeof e&&e()},t||500)}}}(),m.doesFontExist=function(e){var t=f.createElement("canvas"),n=t.getContext("2d"),a="abcdefghijklmnopqrstuvwxyz0123456789";n.font="72px monospace";var o=n.measureText(a).width;return n.font="72px '"+e+"', monospace",t=null,n.measureText(a).width!==o},m.loadJsCss=function(e,t,n){var a,o,r=this;for(r.files=e,r.js=[],r.head=f.getElementsByTagName("head")[0]||"",r.body=f.body||"",r.ref=f.getElementsByTagName("script")[0]||"",r.callback=t||function(){},r.type=n?n.toLowerCase():"",r.loadStyle=function(e){var t=f.createElement("link");t.rel="stylesheet",t.type="text/css",t.href=e,t.media="only x",t.onload=function(){this.onload=null,this.media="all"},t.setAttribute("property","stylesheet"),(r.body||r.head).appendChild(t)},r.loadScript=function(e){var t=f.createElement("script");t.type="text/javascript",t.async=!0,t.src=r.js[e];t.onload=function(){++eQ?addClass(X,t):removeClass(X,t)},100).call(Y)},G=function(){throttle(function(){removeClass(X,t),($.body.scrollTop||Z.scrollTop||0)>Q?addClass(X,e):removeClass(X,e)},100).call(Y)};X&&(addListener(Y,"scroll",function(){throttle(function(){($.body.scrollTop||Z.scrollTop||0)s+1?e.hashes[s+1].href:e.hashes[0].href;break}s=i=null}else a=e.hashes[e.hashes.length-1].href,o=e.hashes[1].href;a&&o&&(t.href=a,n.href=o)}}(e),manageExternalLinkAll(),manageImgLightbox(),manageIframeLightbox(),B(),n=$.getElementsByTagName("code")||"",Y.hljs&&n&&function(){var e,t;for(e=0,t=n.length;e *"))||"",t=e.length||0;if(e&&!hasClass(s,U)){var n,a;for(n=0,a=e.length;n
',(f.body||"").appendChild(a));return{show:function(){return a.style.display="block"},hide:function(e,t){var n=setTimeout(function(){clearTimeout(n),n=null,setDisplayNone(a),e&&"function"==typeof e&&e()},t||500)}}}(),m.doesFontExist=function(e){var t=f.createElement("canvas"),n=t.getContext("2d"),a="abcdefghijklmnopqrstuvwxyz0123456789";n.font="72px monospace";var o=n.measureText(a).width;return n.font="72px '"+e+"', monospace",t=null,n.measureText(a).width!==o},m.loadJsCss=function(e,t,n){var a,o,r=this;for(r.files=e,r.js=[],r.head=f.getElementsByTagName("head")[0]||"",r.body=f.body||"",r.ref=f.getElementsByTagName("script")[0]||"",r.callback=t||function(){},r.type=n?n.toLowerCase():"",r.loadStyle=function(e){var t=f.createElement("link");t.rel="stylesheet",t.type="text/css",t.href=e,t.media="only x",t.onload=function(){this.onload=null,this.media="all"},t.setAttribute("property","stylesheet"),(r.body||r.head).appendChild(t)},r.loadScript=function(e){var t=f.createElement("script");t.type="text/javascript",t.async=!0,t.src=r.js[e];t.onload=function(){++eQ?addClass(X,t):removeClass(X,t)},100).call(Y)},G=function(){throttle(function(){removeClass(X,t),($.body.scrollTop||Z.scrollTop||0)>Q?addClass(X,e):removeClass(X,e)},100).call(Y)};X&&(addListener(Y,"scroll",function(){throttle(function(){($.body.scrollTop||Z.scrollTop||0)s+1?e.hashes[s+1].href:e.hashes[0].href;break}s=i=null}else a=e.hashes[e.hashes.length-1].href,o=e.hashes[1].href;a&&o&&(t.href=a,n.href=o)}}(e),manageExternalLinkAll(),manageImgLightbox(),manageIframeLightbox(),B(),n=$.getElementsByTagName("code")||"",Y.hljs&&n&&function(){var e,t;for(e=0,t=n.length;e *"))||"",t=e.length||0;if(e&&!hasClass(s,U)){var n,a;for(n=0,a=e.length;n