* Gets the default type to embed as, if not specified. * @param {string} href * @return {string}
(href)
| 95 | * @return {string} |
| 96 | */ |
| 97 | function getDefaultEmbedAs(href) { |
| 98 | return href.match(/\/videos\/\d+\/?$/) ? 'video' : 'post'; |
| 99 | } |
| 100 | |
| 101 | /** |
| 102 | * Create DOM element for the Facebook embedded page plugin. |