Skip to content
Permalink
Browse files

[FIX] website: restore facebook snippet

- facebook API not accepting float values anymore for height and width parameter
  • Loading branch information...
kig-odoo committed Apr 26, 2019
1 parent 7228c10 commit 19d320bb32850e7f5318284fc64a10db1b525e5e
Showing with 1 addition and 1 deletion.
  1. +1 −1 addons/website/static/src/js/content/snippets.animation.js
@@ -1033,7 +1033,7 @@ registry.facebookPage = Animation.extend({
if (!params.href) {
return def;
}
params.width = utils.confine(this.$el.width(), 180, 500);
params.width = parseInt(utils.confine(this.$el.width(), 180, 500));

var src = $.param.querystring('https://www.facebook.com/plugins/page.php', params);
this.$iframe = $('<iframe/>', {

0 comments on commit 19d320b

Please sign in to comment.
You can’t perform that action at this time.