mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
Fix window reference for node tests
This commit is contained in:
parent
da2794f7f7
commit
01e4920876
@ -7,7 +7,7 @@ export default class Logger {
|
|||||||
id: ?string;
|
id: ?string;
|
||||||
|
|
||||||
constructor(enabled: boolean, id: ?string, start: ?number) {
|
constructor(enabled: boolean, id: ?string, start: ?number) {
|
||||||
this.enabled = enabled;
|
this.enabled = typeof window !== 'undefined' && enabled;
|
||||||
this.start = start ? start : Date.now();
|
this.start = start ? start : Date.now();
|
||||||
this.id = id;
|
this.id = id;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user