From 47ea4fc3fcf30d4f5d9862bac0b386264afc3bc3 Mon Sep 17 00:00:00 2001 From: WEBXOSS Date: Sun, 5 Mar 2017 22:30:51 +0800 Subject: [PATCH] fix no redirect on firefox --- migrate.html | 4 ++-- webxoss.appcache | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/migrate.html b/migrate.html index d69711e..d52c27b 100644 --- a/migrate.html +++ b/migrate.html @@ -54,7 +54,7 @@ function handleSender() { if (localStorage.getItem('migrated')) { // already migrated, redirect to https - return location.protocol = 'https:' + return location.href = location.href.replace(/^http:/, 'https:') } window.addEventListener('message', function (event) { var origin = event.origin || event.originalEvent.origin; @@ -68,7 +68,7 @@ // get stored signal, done if (event.data === 'stored') { localStorage.setItem('migrated', true) - return location.protocol = 'https:' + return location.href = location.href.replace(/^http:/, 'https:') } }, false) iframe.src = 'https://' + location.host + '/migrate.html' diff --git a/webxoss.appcache b/webxoss.appcache index 1b89445..8e5574d 100644 --- a/webxoss.appcache +++ b/webxoss.appcache @@ -45,4 +45,4 @@ background/loading.gif NETWORK: * -# 2016/03/05 18:03 +# 2016/03/05 22:37