fix: 🐛 handle null window in case of popup blocker

This commit is contained in:
Randall Morey committed 2021-05-08 07:49:53 -04:00
1 parent da6b34b337
commit cf5f41acbd
1 file changed
+1 -1
+1 -1
View File
@@ -28,7 +28,7 @@ export default class WindowManagerService extends Service {
*/
open(url) {
const newWindow = this.window.open(url);
this.add(newWindow);
if (newWindow) this.add(newWindow);
}
/**