You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
varCACHE_NAME='monaco-editor-cache-v1';varurlsToPrefetch=['/','/styles/main.css','/script/main.js','https://github.com/monaco-editor/.......'];self.addEventListener('install',function(event){// Perform install stepsevent.waitUntil(caches.open(CACHE_NAME).then(function(cache){console.log('Opened cache');// Magic is here. Look the mode: 'no-cors' part.cache.addAll(urlsToPrefetch.map(function(urlToPrefetch){returnnewRequest(urlToPrefetch,{mode: 'no-cors'});})).then(function(){console.log('All resources have been fetched and cached.');});}));});
The text was updated successfully, but these errors were encountered: