Commit 1d651b1
committed
fix: Close OAuth BrowserView only if present
It seems our OAuth `BrowserView` can be undefined when it's time to
close it.
Although we're uncertain why, it could be Electron closes it already
when loading the redirect URL.
Anyway, we can check for its presence before trying to close it and
avoid errors.1 parent 2682ac2 commit 1d651b1
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
119 | 121 | | |
120 | 122 | | |
121 | 123 | | |
| |||
0 commit comments