1
0
mirror of https://github.com/twitter/twemoji.git synced 2024-06-15 03:35:16 +00:00

Use HTTPS in all cases for the default assets URL

There is no reason not to use HTTPS.
This commit is contained in:
Mathias Bynens 2014-11-08 08:56:01 +01:00
parent f5d1318b97
commit e6513a82fd
7 changed files with 11 additions and 14 deletions

View File

@ -9,7 +9,7 @@ The folks over at [MaxCDN](https://www.maxcdn.com) graciously provide CDN suppor
Just use the following in the `<head>` tag of your HTML document(s):
```html
<script src="//twemoji.maxcdn.com/twemoji.min.js"></script>
<script src="https://twemoji.maxcdn.com/twemoji.min.js"></script>
```
## API

View File

@ -43,7 +43,7 @@
<script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>
<p>Code licensed under MIT. Graphics licensed under CC-BY</p>
<script src="//twemoji.maxcdn.com/twemoji.min.js"></script>
<script src="https://twemoji.maxcdn.com/twemoji.min.js"></script>
<script>
// I \u2764 emoji!
twemoji.parse(document.body, {size: 72});

View File

@ -25,7 +25,7 @@
vertical-align: -0.1em;
}
</style>
<script src="//twemoji.maxcdn.com/twemoji.min.js"></script>
<script src="https://twemoji.maxcdn.com/twemoji.min.js"></script>
</head>
<body>
<ul class="emoji-list">

View File

@ -301,8 +301,7 @@ function createTwemoji(re) {
/////////////////////////
// default assets url, by default will be Twitter Inc. CDN
base: (location.protocol === 'https:' ? 'https:' : 'http:') +
'//twemoji.maxcdn.com/',
base: 'https://twemoji.maxcdn.com/',
// default assets file extensions, by default '.png'
ext: '.png',

View File

@ -25,8 +25,7 @@ define(function () {
/////////////////////////
// default assets url, by default will be Twitter Inc. CDN
base: (location.protocol === 'https:' ? 'https:' : 'http:') +
'//twemoji.maxcdn.com/',
base: 'https://twemoji.maxcdn.com/',
// default assets file extensions, by default '.png'
ext: '.png',

View File

@ -24,8 +24,7 @@ var twemoji = (function (
/////////////////////////
// default assets url, by default will be Twitter Inc. CDN
base: (location.protocol === 'https:' ? 'https:' : 'http:') +
'//twemoji.maxcdn.com/',
base: 'https://twemoji.maxcdn.com/',
// default assets file extensions, by default '.png'
ext: '.png',

2
twemoji.min.js vendored

File diff suppressed because one or more lines are too long