From d611ede0af43c4d53dc95025fa8a195e05f4cc07 Mon Sep 17 00:00:00 2001 From: virusdefender Date: Sat, 6 Jan 2018 23:17:51 +0800 Subject: [PATCH] fix https check function --- src/pages/admin/views/general/Dashboard.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/admin/views/general/Dashboard.vue b/src/pages/admin/views/general/Dashboard.vue index ad8031fe9..ceecd7c62 100644 --- a/src/pages/admin/views/general/Dashboard.vue +++ b/src/pages/admin/views/general/Dashboard.vue @@ -162,7 +162,7 @@ return this.infoData.env.STATIC_CDN_HOST }, https () { - return document.URL.slice(0, 4) === 'https' + return document.URL.slice(0, 5) === 'https' }, forceHttps () { return this.infoData.env.FORCE_HTTPS