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): Just use the following in the `<head>` tag of your HTML document(s):
```html ```html
<script src="//twemoji.maxcdn.com/twemoji.min.js"></script> <script src="https://twemoji.maxcdn.com/twemoji.min.js"></script>
``` ```
## API ## API

View File

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

View File

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

View File

@ -114,7 +114,7 @@ Queue([
} }
}); });
} }
}, },
// and per each folder // and per each folder
Object.keys(assets) Object.keys(assets)
@ -301,8 +301,7 @@ function createTwemoji(re) {
///////////////////////// /////////////////////////
// default assets url, by default will be Twitter Inc. CDN // default assets url, by default will be Twitter Inc. CDN
base: (location.protocol === 'https:' ? 'https:' : 'http:') + base: 'https://twemoji.maxcdn.com/',
'//twemoji.maxcdn.com/',
// default assets file extensions, by default '.png' // default assets file extensions, by default '.png'
ext: '.png', ext: '.png',

View File

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

View File

@ -24,8 +24,7 @@ var twemoji = (function (
///////////////////////// /////////////////////////
// default assets url, by default will be Twitter Inc. CDN // default assets url, by default will be Twitter Inc. CDN
base: (location.protocol === 'https:' ? 'https:' : 'http:') + base: 'https://twemoji.maxcdn.com/',
'//twemoji.maxcdn.com/',
// default assets file extensions, by default '.png' // default assets file extensions, by default '.png'
ext: '.png', ext: '.png',
@ -510,4 +509,4 @@ var twemoji = (function (
return r.join(sep || '-'); return r.join(sep || '-');
} }
}()); }());

2
twemoji.min.js vendored

File diff suppressed because one or more lines are too long