react-notification-badge
Advanced tools
Comparing version 1.3.2 to 1.3.3
## Change Log | ||
### Ver 1.3.3 | ||
* #25 [There's a logical mistake in 'AnimationCounter.js' file!](https://github.com/georgeOsdDev/react-notification-badge/issues/25) | ||
### Ver 1.3.2 | ||
@@ -4,0 +8,0 @@ |
@@ -9,4 +9,2 @@ 'use strict'; | ||
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; | ||
var _react = require('react'); | ||
@@ -44,3 +42,3 @@ | ||
var requestAnimationFrame = function () { | ||
if (typeof window !== 'undefined') { | ||
if (typeof window === 'undefined') { | ||
return defaultSetTimeout; | ||
@@ -53,3 +51,3 @@ } else { | ||
var cancelAnimationFrame = function () { | ||
if (typeof window !== 'undefined') { | ||
if (typeof window === 'undefined') { | ||
return defaultClearTimeout; | ||
@@ -61,3 +59,3 @@ } else { | ||
var now = (typeof window === 'undefined' ? 'undefined' : _typeof(window)) !== undefined && window.performance && (performance.now || performance.mozNow || performance.msNow || performance.oNow || performance.webkitNow); | ||
var now = typeof window !== 'undefined' && window.performance && (performance.now || performance.mozNow || performance.msNow || performance.oNow || performance.webkitNow); | ||
@@ -64,0 +62,0 @@ var getTime = function getTime() { |
{ | ||
"name": "react-notification-badge", | ||
"version": "1.3.2", | ||
"version": "1.3.3", | ||
"description": "Simple notification badge react component", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -16,3 +16,3 @@ 'use strict'; | ||
const requestAnimationFrame = (() => { | ||
if (typeof window !== 'undefined') { | ||
if (typeof window === 'undefined') { | ||
return defaultSetTimeout; | ||
@@ -30,3 +30,3 @@ } else { | ||
const cancelAnimationFrame = (() => { | ||
if (typeof window !== 'undefined') { | ||
if (typeof window === 'undefined') { | ||
return defaultClearTimeout; | ||
@@ -43,3 +43,3 @@ } else { | ||
const now = typeof window !== undefined && | ||
const now = typeof window !== 'undefined' && | ||
window.performance && ( | ||
@@ -46,0 +46,0 @@ performance.now || |
37431
758