Skip to content

Commit

Permalink
release 2.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
banrikun committed Sep 19, 2018
1 parent cd4eb08 commit d8a465a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 10 deletions.
5 changes: 1 addition & 4 deletions dist/vue-img.es6.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
const VueImg$1 = Object.create(null);

// Check webP support
VueImg$1.canWebp = false;
const img = new Image();
img.onload = () => { VueImg$1.canWebp = true; };
img.src = 'data:image/webp;base64,UklGRkoAAABXRUJQVlA4WAoAAAAQAAAAAAAAAAAAQUxQSAsAAAABBxAREYiI/gcAAABWUDggGAAAADABAJ0BKgEAAQABABwlpAADcAD+/gbQAA==';
VueImg$1.canWebp = !![].map && document.createElement('canvas').toDataURL('image/webp').indexOf('data:image/webp') === 0;

// Default cdn prefix
const protocol = location.protocol === 'https:' ? 'https://' : 'http://';
Expand Down
5 changes: 1 addition & 4 deletions dist/vue-img.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@
var VueImg$1 = Object.create(null);

// Check webP support
VueImg$1.canWebp = false;
var img = new Image();
img.onload = function () { VueImg$1.canWebp = true; };
img.src = 'data:image/webp;base64,UklGRkoAAABXRUJQVlA4WAoAAAAQAAAAAAAAAAAAQUxQSAsAAAABBxAREYiI/gcAAABWUDggGAAAADABAJ0BKgEAAQABABwlpAADcAD+/gbQAA==';
VueImg$1.canWebp = !![].map && document.createElement('canvas').toDataURL('image/webp').indexOf('data:image/webp') === 0;

// Default cdn prefix
var protocol = location.protocol === 'https:' ? 'https://' : 'http://';
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-img",
"version": "2.9.1",
"version": "2.10.0",
"description": "hash2path wrapper for vue 2",
"main": "dist/vue-img.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/base.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const VueImg = Object.create(null)

// Check webP support
VueImg.canWebp = !![].map && document.createElement('canvas').toDataURL('image/webp').indexOf('data:image/webp') === 0;
VueImg.canWebp = !![].map && document.createElement('canvas').toDataURL('image/webp').indexOf('data:image/webp') === 0

// Default cdn prefix
const protocol = location.protocol === 'https:' ? 'https://' : 'http://'
Expand Down

0 comments on commit d8a465a

Please sign in to comment.