Skip to content

Commit 7b58a91

Browse files
author
Bernard Gatt
committed
Prevents SDK crash if logging hasn't been setup yet
1 parent c7a7e3e commit 7b58a91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utilities/log.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import Gist from '../gist';
22

33
export function log(message) {
4-
if (Gist.config.logging) {
4+
if (Gist.config && Gist.config.logging) {
55
console.log(`Gist: ${message}`);
66
}
77
}

0 commit comments

Comments
 (0)