favorite-icon-video
Advanced tools
Comparing version 2.1.1 to 2.1.2
@@ -83,6 +83,9 @@ 'use strict'; | ||
links: options.links || undefined, | ||
size: options.size, | ||
size: options.size || Favicon.size, | ||
}; | ||
} | ||
FaviconVideo.prototype.start = function (video) { | ||
if (!Favicon.hasSupport) { | ||
return; | ||
} | ||
this.unbindEvents(); | ||
@@ -97,2 +100,5 @@ this.video = video; | ||
FaviconVideo.prototype.stop = function () { | ||
if (!Favicon.hasSupport) { | ||
return; | ||
} | ||
this.unbindEvents(); | ||
@@ -109,5 +115,11 @@ }; | ||
FaviconVideo.prototype.reset = function () { | ||
if (!Favicon.hasSupport) { | ||
return; | ||
} | ||
Favicon.reset(); | ||
}; | ||
FaviconVideo.prototype.destroy = function () { | ||
if (!Favicon.hasSupport) { | ||
return; | ||
} | ||
this.unbindEvents(); | ||
@@ -114,0 +126,0 @@ this.video = undefined; |
@@ -10,3 +10,3 @@ import { FaviconVideoOptions } from './types'; | ||
private context?; | ||
private video; | ||
private video?; | ||
constructor(options?: FaviconVideoOptions); | ||
@@ -13,0 +13,0 @@ start(video: HTMLVideoElement): void; |
@@ -81,6 +81,9 @@ function hasSupport$1() { | ||
links: options.links || undefined, | ||
size: options.size, | ||
size: options.size || Favicon.size, | ||
}; | ||
} | ||
FaviconVideo.prototype.start = function (video) { | ||
if (!Favicon.hasSupport) { | ||
return; | ||
} | ||
this.unbindEvents(); | ||
@@ -95,2 +98,5 @@ this.video = video; | ||
FaviconVideo.prototype.stop = function () { | ||
if (!Favicon.hasSupport) { | ||
return; | ||
} | ||
this.unbindEvents(); | ||
@@ -107,5 +113,11 @@ }; | ||
FaviconVideo.prototype.reset = function () { | ||
if (!Favicon.hasSupport) { | ||
return; | ||
} | ||
Favicon.reset(); | ||
}; | ||
FaviconVideo.prototype.destroy = function () { | ||
if (!Favicon.hasSupport) { | ||
return; | ||
} | ||
this.unbindEvents(); | ||
@@ -112,0 +124,0 @@ this.video = undefined; |
@@ -84,6 +84,9 @@ var FaviconVideo = (function () { | ||
links: options.links || undefined, | ||
size: options.size, | ||
size: options.size || Favicon.size, | ||
}; | ||
} | ||
FaviconVideo.prototype.start = function (video) { | ||
if (!Favicon.hasSupport) { | ||
return; | ||
} | ||
this.unbindEvents(); | ||
@@ -98,2 +101,5 @@ this.video = video; | ||
FaviconVideo.prototype.stop = function () { | ||
if (!Favicon.hasSupport) { | ||
return; | ||
} | ||
this.unbindEvents(); | ||
@@ -110,5 +116,11 @@ }; | ||
FaviconVideo.prototype.reset = function () { | ||
if (!Favicon.hasSupport) { | ||
return; | ||
} | ||
Favicon.reset(); | ||
}; | ||
FaviconVideo.prototype.destroy = function () { | ||
if (!Favicon.hasSupport) { | ||
return; | ||
} | ||
this.unbindEvents(); | ||
@@ -115,0 +127,0 @@ this.video = undefined; |
{ | ||
"name": "favorite-icon-video", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"description": "A small library for video manipulating in favicon", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.common.js", |
17490
403