Merge branch 'master' of https://github.com/AmauriC/tarteaucitron.js
This commit is contained in:
commit
ab980fd942
|
|
@ -1821,8 +1821,8 @@ var tarteaucitron = {
|
||||||
}
|
}
|
||||||
|
|
||||||
// get the html lang
|
// get the html lang
|
||||||
if (availableLanguages.indexOf(document.documentElement.getAttribute("lang")) !== -1) {
|
if (availableLanguages.indexOf(document.documentElement.getAttribute("lang").substr(0, 2)) !== -1) {
|
||||||
return document.documentElement.getAttribute("lang");
|
return document.documentElement.getAttribute("lang").substr(0, 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!navigator) { return defaultLanguage; }
|
if (!navigator) { return defaultLanguage; }
|
||||||
|
|
|
||||||
|
|
@ -3896,7 +3896,7 @@ tarteaucitron.services.twittertimeline = {
|
||||||
"js": function () {
|
"js": function () {
|
||||||
"use strict";
|
"use strict";
|
||||||
tarteaucitron.fallback(['tacTwitterTimelines'], '');
|
tarteaucitron.fallback(['tacTwitterTimelines'], '');
|
||||||
tarteaucitron.addScript('//platform.twitter.com/widgets.js', 'twitter-wjs');
|
tarteaucitron.addScript('https://platform.twitter.com/widgets.js', 'twitter-wjs');
|
||||||
},
|
},
|
||||||
"fallback": function () {
|
"fallback": function () {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue