Add the case where the user is not logged in webapp
This commit is contained in:
parent
aabf18c6a0
commit
a28176a6d7
|
@ -12,7 +12,10 @@ Notification = EnhancedNotification; // eslint-disable-line no-global-assign, no
|
||||||
Reflect.deleteProperty(global.Buffer); // http://electron.atom.io/docs/tutorial/security/#buffer-global
|
Reflect.deleteProperty(global.Buffer); // http://electron.atom.io/docs/tutorial/security/#buffer-global
|
||||||
|
|
||||||
function isReactAppInitialized() {
|
function isReactAppInitialized() {
|
||||||
const initializedRoot = document.querySelector('div[data-reactroot]') || document.querySelector('#root.channel-view');
|
const initializedRoot =
|
||||||
|
document.querySelector('#root.channel-view') || // React 16 webapp
|
||||||
|
document.querySelector('#root .signup-team__container') || // React 16 login
|
||||||
|
document.querySelector('div[data-reactroot]'); // Older React apps
|
||||||
if (initializedRoot === null) {
|
if (initializedRoot === null) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue