From 9296bb6a63c83a517211318b526b24b2c61468a9 Mon Sep 17 00:00:00 2001 From: Georg Fischer Date: Sat, 11 Jun 2016 11:25:00 +0200 Subject: [PATCH] remove https check in javascript (github now allows to enforce https for gh-pages) --- index.html | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/index.html b/index.html index 12a0b6a..967dadd 100644 --- a/index.html +++ b/index.html @@ -52,11 +52,7 @@ ( testCanvas.getContext && testCanvas.getContext( '2d' ) ) ) { if ( 'serviceWorker' in navigator ) { - if ( location.protocol !== 'https:' && location.host !== 'localhost' ) { - location.protocol = 'https:'; - } elseĀ { - navigator.serviceWorker.register( 'serviceworker.js' ); - } + navigator.serviceWorker.register( 'serviceworker.js' ); } var loaderEl = document.createElement( 'div' );