1
0
mirror of https://github.com/twitter/twemoji.git synced 2024-09-28 23:00:50 +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

@ -41,9 +41,9 @@
</p>
<blockquote class="twitter-tweet" lang="en" align="center"><p>today we are open sourcing our emoji to share with everyone <a href="https://twitter.com/hashtag/twemojiparty?src=hash">#twemojiparty</a> 🎉 😜 👯 🍻 🎈 🎤 🎮 🚀 🌉 ✨ <a href="https://t.co/zkXqMXEkOT">https://t.co/zkXqMXEkOT</a></p>&mdash; Twitter Open Source (@TwitterOSS) <a href="https://twitter.com/TwitterOSS/status/530496382885720064">November 6, 2014</a></blockquote>
<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

@ -114,7 +114,7 @@ Queue([
}
});
}
},
// and per each folder
Object.keys(assets)
@ -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',
@ -513,4 +512,4 @@ define(function () {
}());
return twemoji;
});
});

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',
@ -510,4 +509,4 @@ var twemoji = (function (
return r.join(sep || '-');
}
}());
}());

2
twemoji.min.js vendored

File diff suppressed because one or more lines are too long