Commit 1139edf9 authored by Yoginth's avatar Yoginth 🦄

Added CDN to SW

parent 94f7b4a2
Pipeline #30311695 passed with stages
in 13 minutes and 31 seconds
......@@ -2,10 +2,29 @@ var STATIC_CACHE = 'static-cache-v1';
var urlsToCache = [
// js
'/js/gitote.js',
'https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.min.js',
'https://cdnjs.cloudflare.com/ajax/libs/jquery.AreYouSure/1.9.0/jquery.are-you-sure.min.js',
'https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.3.1/semantic.min.js',
'https://cdn.jsdelivr.net/npm/gitote@1.0.2/plugins/highlight/highlight.pack.js',
'https://cdnjs.cloudflare.com/ajax/libs/emojify.js/1.1.0/js/emojify.min.js',
'https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/1.5.9/clipboard.min.js',
// css
'/css/gitote.min.css',
'/css/bundle.css',
'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.min.css',
'https://cdn.jsdelivr.net/npm/gitote@1.0.3/plugins/octicons/octicons.min.css',
'https://cdn.jsdelivr.net/npm/gitote@1.0.2/plugins/highlight/github.css',
// img
'/fluidicon.png',
'/og.png',
'https://cdn.jsdelivr.net/npm/gitote@1.0.1/logo.png',
'https://cdn.jsdelivr.net/npm/gitote@1.0.1/img/404.png',
'https://cdn.jsdelivr.net/npm/gitote@1.0.1/img/500.png',
// misc
'/favicon.ico',
];
self.addEventListener('install', function (event) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment