fix: webfont

This commit is contained in:
Alexander Yakovlev 2019-02-19 01:56:02 +07:00
parent a3bfcb2e6d
commit 99e22bda54
Signed by: oreolek
GPG Key ID: 1CDC4B7820C93BD3
2 changed files with 9 additions and 7 deletions

View File

@ -25,7 +25,6 @@ jQuery(document).ready(function($){
ls.dev.init();
/**
* IE
*/
@ -425,7 +424,7 @@ jQuery(document).ready(function($){
// Добавление в избранное на странице диалога
$('.js-talk-message-root-favourite').on('click', function (event) {
if (event.target == event.currentTarget) {
if (event.target === event.currentTarget) {
$(this).find('.js-favourite-talk').lsFavourite('toggle');
}
});
@ -668,5 +667,13 @@ jQuery(document).ready(function($){
// Хук конца инициализации javascript-составляющих шаблона
ls.hook.run('ls_template_init_end',[],window);
if (WebFont !== undefined) {
WebFont.load({
google: {
families: ['Open Sans:300,400,700:latin,cyrillic']
}
});
}
});

View File

@ -281,11 +281,6 @@
wf.async = true;
s.parentNode.insertBefore(wf, s);
})(document);
WebFont.load({
google: {
families: ['Open Sans:300,400,700:latin,cyrillic']
}
});
</script>
{hook run='layout_body_end'}
{/block}