favorite-icon-video
Advanced tools
Comparing version 2.2.0 to 2.3.0
@@ -8,2 +8,5 @@ 'use strict'; | ||
var ua = navigator.userAgent; | ||
if (ua.search(/Mobi|Android/i) > -1) { | ||
return false; | ||
} | ||
var opera = Boolean(window.opera) || ua.indexOf('Opera') > -1; | ||
@@ -21,3 +24,3 @@ var firefox = ua.toLowerCase().indexOf('firefox') > -1; | ||
Favicon.set = function (src, elems) { | ||
if (!this.hasSupport) { | ||
if (!hasSupport) { | ||
return; | ||
@@ -31,8 +34,9 @@ } | ||
Favicon.reset = function () { | ||
if (this.hasSupport) { | ||
this.set(Favicon.originalSrc); | ||
if (!hasSupport) { | ||
return; | ||
} | ||
this.set(Favicon.originalSrc); | ||
}; | ||
Favicon.searchIcons = function () { | ||
if (typeof window === 'undefined') { | ||
if (!hasSupport) { | ||
return []; | ||
@@ -39,0 +43,0 @@ } |
@@ -6,2 +6,5 @@ function hasSupport$1() { | ||
var ua = navigator.userAgent; | ||
if (ua.search(/Mobi|Android/i) > -1) { | ||
return false; | ||
} | ||
var opera = Boolean(window.opera) || ua.indexOf('Opera') > -1; | ||
@@ -19,3 +22,3 @@ var firefox = ua.toLowerCase().indexOf('firefox') > -1; | ||
Favicon.set = function (src, elems) { | ||
if (!this.hasSupport) { | ||
if (!hasSupport) { | ||
return; | ||
@@ -29,8 +32,9 @@ } | ||
Favicon.reset = function () { | ||
if (this.hasSupport) { | ||
this.set(Favicon.originalSrc); | ||
if (!hasSupport) { | ||
return; | ||
} | ||
this.set(Favicon.originalSrc); | ||
}; | ||
Favicon.searchIcons = function () { | ||
if (typeof window === 'undefined') { | ||
if (!hasSupport) { | ||
return []; | ||
@@ -37,0 +41,0 @@ } |
@@ -9,2 +9,5 @@ var FaviconVideo = (function () { | ||
var ua = navigator.userAgent; | ||
if (ua.search(/Mobi|Android/i) > -1) { | ||
return false; | ||
} | ||
var opera = Boolean(window.opera) || ua.indexOf('Opera') > -1; | ||
@@ -22,3 +25,3 @@ var firefox = ua.toLowerCase().indexOf('firefox') > -1; | ||
Favicon.set = function (src, elems) { | ||
if (!this.hasSupport) { | ||
if (!hasSupport) { | ||
return; | ||
@@ -32,8 +35,9 @@ } | ||
Favicon.reset = function () { | ||
if (this.hasSupport) { | ||
this.set(Favicon.originalSrc); | ||
if (!hasSupport) { | ||
return; | ||
} | ||
this.set(Favicon.originalSrc); | ||
}; | ||
Favicon.searchIcons = function () { | ||
if (typeof window === 'undefined') { | ||
if (!hasSupport) { | ||
return []; | ||
@@ -40,0 +44,0 @@ } |
{ | ||
"name": "favorite-icon-video", | ||
"version": "2.2.0", | ||
"version": "2.3.0", | ||
"description": "A small library for video manipulating in favicon", | ||
@@ -33,4 +33,4 @@ "main": "dist/index.common.js", | ||
"devDependencies": { | ||
"favorite-icon": "^1.0.1" | ||
"favorite-icon": "^1.1.0" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17725
416