Skip to content

Commit a3804f7

Browse files
committed
auto redirect to HTTPS
1 parent 89bdd1e commit a3804f7

4 files changed

Lines changed: 9 additions & 3 deletions

File tree

‎cache.manifest‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
CACHE MANIFEST
2-
# Build: 20181117104641
2+
# Build: 20181122065617
33

44
CACHE:
55
resources/fonts/Dressedless_Three.svg

‎index.html‎

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

‎static/app/index.html‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@
1212
<link rel="apple-touch-icon-precomposed" href="resources/images/codelf_logo.png">
1313
<link title="CODELF" type="application/opensearchdescription+xml" rel="search" href="./opensearch.xml">
1414
@@include("html/styles.html")
15+
<script>
16+
// auto redirect to HTTPS
17+
if (window.location.host.indexOf('github.io') != -1 && window.location.protocol != "https:"){
18+
window.location.protocol = "https";
19+
}
20+
</script>
1521
</head>
1622
<body ontouchstart="">
1723
@@include("html/main.html")

‎sw.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
// cache, then increment the CACHE_VERSION value. It will kick off the service worker update
2525
// flow and the old cache(s) will be purged as part of the activate event handler when the
2626
// updated service worker is activated.
27-
var CACHE_VERSION = 20181117104641;
27+
var CACHE_VERSION = 20181122065617;
2828
var CURRENT_CACHES = {
2929
prefetch: 'prefetch-cache-v' + CACHE_VERSION
3030
};

0 commit comments

Comments
 (0)