Merge pull request #4 from kholbekj/dynamic_share_button
make facebook button respect locale
This commit is contained in:
commit
cea8520237
|
@ -16,6 +16,6 @@
|
||||||
var js, fjs = d.getElementsByTagName(s)[0];
|
var js, fjs = d.getElementsByTagName(s)[0];
|
||||||
if (d.getElementById(id)) return;
|
if (d.getElementById(id)) return;
|
||||||
js = d.createElement(s); js.id = id;
|
js = d.createElement(s); js.id = id;
|
||||||
js.src = "//connect.facebook.net/fr_FR/sdk.js#xfbml=1&version=v2.5";
|
js.src = "//connect.facebook.net/{{ $.Site.Params.locale }}/sdk.js#xfbml=1&version=v2.5";
|
||||||
fjs.parentNode.insertBefore(js, fjs);
|
fjs.parentNode.insertBefore(js, fjs);
|
||||||
}(document, 'script', 'facebook-jssdk'));</script>
|
}(document, 'script', 'facebook-jssdk'));</script>
|
||||||
|
|
Loading…
Reference in New Issue