Skip to content

Commit

Permalink
Updated core
Browse files Browse the repository at this point in the history
  • Loading branch information
Viktor Bergehall committed Sep 22, 2016
1 parent 8bbb4c1 commit 3928a3b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions dist/lazyframe.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
"description": "Dependency-free library for lazyloading iframes",
"main": "dist/lazyframe.min.js",
"jsnext:main": "src/lazyframe.js",
"scripts": {
"build": "./node_modules/.bin/babel src -d dist"
},

"repository": {
"type": "git",
"url": "git+https://github.com/viktorbergehall/lazyframe.git"
Expand Down
2 changes: 1 addition & 1 deletion src/lazyframe.js
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ const Lazyframe = () => {
lazyframe.el.style.backgroundImage = `url(${lazyframe.settings.thumbnail})`;
}

if (lazyframe.settings.title) {
if (lazyframe.settings.title && lazyframe.el.children.length === 0) {
const docfrag = document.createDocumentFragment(),
titleNode = document.createElement('span');

Expand Down

0 comments on commit 3928a3b

Please sign in to comment.