Skip to content

Commit 78e6e58

Browse files
committed
Fix window error on server side #60
1 parent 2ae1606 commit 78e6e58

File tree

5 files changed

+13
-10
lines changed

5 files changed

+13
-10
lines changed

CHANGELOG.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,24 @@
11
# Changelog
22

3-
## 2.8.0
3+
## 2.8.1 - Dec 29, 2020
4+
* Fix window error on server side #60
5+
6+
## 2.8.0 - Dec 13, 2020
47
* Update npm dependencies
58

6-
## 2.7.0
9+
## 2.7.0 - Sep 17, 2019
710
* Update npm dependencies
811

9-
## 2.6.0
12+
## 2.6.0 - May 6, 2019
1013
* Update npm dependencies
1114

12-
## 2.5.0
15+
## 2.5.0 - Oct 20, 2018
1316
* Update npm dependencies
1417

15-
## 2.4.0 Mat 7, 2018
18+
## 2.4.0 - Mar 7, 2018
1619
* Fix code not transpilling to ES5
1720

18-
## 2.3.0
21+
## 2.3.0 - Mar 6, 2018
1922
* Fix 60 seconds showing at minute transition #38 - Thanks @7022Andre
2023
* Fix Uncaught TypeError: Cannot read property 'width' of undefined at Object._clearTimer #34
2124
* Only show full start time when starting paused

build/react-countdown-clock.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/react-countdown-clock.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coffee/react-countdown-clock.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ReactCountdownClock = CreateReactClass
99
_content: null
1010
_canvas: null
1111
_timeoutIds: []
12-
_scale: window.devicePixelRatio || 1
12+
_scale: window?.devicePixelRatio || 1
1313

1414
displayName: 'ReactCountdownClock'
1515

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-countdown-clock",
3-
"version": "2.8.0",
3+
"version": "2.8.1",
44
"description": "HTML5 canvas countdown clock React component",
55
"main": "build/react-countdown-clock.js",
66
"scripts": {

0 commit comments

Comments
 (0)