Skip to content
This repository has been archived by the owner on Jun 18, 2022. It is now read-only.

Commit

Permalink
3.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
bfred-it committed Apr 26, 2017
1 parent 6fb1bd3 commit 754bdf1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions dist/ofi.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! npm.im/object-fit-images 3.2.0 */
/*! npm.im/object-fit-images 3.2.1 */
var objectFitImages = (function () {
'use strict';

Expand Down Expand Up @@ -112,7 +112,7 @@ function fixOne(el) {
keepSrcUsable(el);
} catch (err) {
if (window.console) {
console.log('http://bit.ly/ofi-old-browser');
console.warn('https://bit.ly/ofi-old-browser');
}
}
}
Expand All @@ -122,6 +122,7 @@ function fixOne(el) {
el.style.backgroundImage = "url(\"" + ((ofi.img.currentSrc || ofi.img.src).replace(/"/g, '\\"')) + "\")";
el.style.backgroundPosition = style['object-position'] || 'center';
el.style.backgroundRepeat = 'no-repeat';
el.style.backgroundOrigin = 'content-box';

if (/scale-down/.test(style['object-fit'])) {
onImageReady(ofi.img, function () {
Expand Down
4 changes: 2 additions & 2 deletions dist/ofi.min.js

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "object-fit-images",
"version": "3.2.0",
"version": "3.2.1",
"description": "Polyfill object-fit and object-position on images on IE9, IE10, IE11, Edge, Safari, ...",
"license": "MIT",
"repository": "bfred-it/object-fit-images",
Expand Down

0 comments on commit 754bdf1

Please sign in to comment.