Skip to content

Commit 28f2d45

Browse files
committed
Update gitauth.js
1 parent a2496ce commit 28f2d45

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

git/gitauth.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ window.addEventListener('load', async () => {
7979
window.addEventListener('message', async (event) => {
8080

8181
// if received a git code
82-
if (event.origin === window.location.origin
83-
&& event.data.startsWith('gitCode=')) {
82+
if (event.origin === window.location.origin &&
83+
event.data && event.data.startsWith('gitCode=')) {
8484

8585
// hide intro screen
8686
sidebar.classList.remove('intro');

0 commit comments

Comments
 (0)