Skip to content

Commit

Permalink
Fix window error on server side #60
Browse files Browse the repository at this point in the history
  • Loading branch information
pughpugh committed Dec 29, 2020
1 parent 2ae1606 commit 78e6e58
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 10 deletions.
15 changes: 9 additions & 6 deletions CHANGELOG.md
@@ -1,21 +1,24 @@
# Changelog

## 2.8.0
## 2.8.1 - Dec 29, 2020
* Fix window error on server side #60

## 2.8.0 - Dec 13, 2020
* Update npm dependencies

## 2.7.0
## 2.7.0 - Sep 17, 2019
* Update npm dependencies

## 2.6.0
## 2.6.0 - May 6, 2019
* Update npm dependencies

## 2.5.0
## 2.5.0 - Oct 20, 2018
* Update npm dependencies

## 2.4.0 Mat 7, 2018
## 2.4.0 - Mar 7, 2018
* Fix code not transpilling to ES5

## 2.3.0
## 2.3.0 - Mar 6, 2018
* Fix 60 seconds showing at minute transition #38 - Thanks @7022Andre
* Fix Uncaught TypeError: Cannot read property 'width' of undefined at Object._clearTimer #34
* Only show full start time when starting paused
Expand Down
2 changes: 1 addition & 1 deletion build/react-countdown-clock.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/react-countdown-clock.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion coffee/react-countdown-clock.coffee
Expand Up @@ -9,7 +9,7 @@ ReactCountdownClock = CreateReactClass
_content: null
_canvas: null
_timeoutIds: []
_scale: window.devicePixelRatio || 1
_scale: window?.devicePixelRatio || 1

displayName: 'ReactCountdownClock'

Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "react-countdown-clock",
"version": "2.8.0",
"version": "2.8.1",
"description": "HTML5 canvas countdown clock React component",
"main": "build/react-countdown-clock.js",
"scripts": {
Expand Down

0 comments on commit 78e6e58

Please sign in to comment.