Redirect to HTTPS for all pages using the new templates.
This commit is contained in:
Родитель
9406b5215c
Коммит
f60564a517
|
@ -1,8 +0,0 @@
|
|||
<script>
|
||||
// If we're running on a real web server (as opposed to localhost on a custom port,
|
||||
// which is whitelisted), then change the protocol to HTTPS.
|
||||
// See https://goo.gl/lq4gCo for an explanation.
|
||||
if ((!location.port || location.port == "80") && location.protocol != 'https:') {
|
||||
location.protocol = 'https:';
|
||||
}
|
||||
</script>
|
|
@ -21,7 +21,14 @@ limitations under the License.
|
|||
<meta name="description" content="Sample illustrating the use of {{ page.feature_name }}.">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>{% if page.title %}{{ page.title }}{% else %}{{ page.feature_name }} Sample{% endif %}</title>
|
||||
{% if page.https_redirect %}{% include https_redirect.html %}{% endif %}
|
||||
<script>
|
||||
// If we're running on a real web server (as opposed to localhost on a custom port,
|
||||
// which is whitelisted), then change the protocol to HTTPS.
|
||||
// See https://goo.gl/lq4gCo for an explanation as to why this is needed for some features.
|
||||
if ((!location.port || location.port == "80") && location.protocol != 'https:') {
|
||||
location.protocol = 'https:';
|
||||
}
|
||||
</script>
|
||||
{% assign sub_dirs = page.url | split: '/' | size | minus: 2 %}
|
||||
{% capture relative_path_to_root %}{% for i in (1..sub_dirs) %}../{% endfor %}{% endcapture %}
|
||||
<link rel="icon" href="{{ relative_path_to_root }}images/favicon.ico">
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
feature_name: Service Worker postMessage()
|
||||
chrome_version: 45
|
||||
feature_id: 5163630974730240
|
||||
https_redirect: true
|
||||
---
|
||||
|
||||
<h3>Background</h3>
|
||||
|
|
Загрузка…
Ссылка в новой задаче