Skip to content

Commit

Permalink
Fix error when custom common url is null
Browse files Browse the repository at this point in the history
  • Loading branch information
Luiz Guilherme committed Feb 12, 2019
1 parent 9a3fcac commit c64d6b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BlipChat.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export class BlipChat {
}

withCustomCommonUrl(commonUrl) {
if (!commonUrl.endsWith('/')) {
if (commonUrl && !commonUrl.endsWith('/')) {
commonUrl += '/'
}

Expand Down

0 comments on commit c64d6b1

Please sign in to comment.