Przeglądaj źródła

remove unnecessary code

Yuki Takei 3 lat temu
rodzic
commit
a924be21b2
1 zmienionych plików z 0 dodań i 6 usunięć
  1. 0 6
      packages/app/src/client/services/AppContainer.js

+ 0 - 6
packages/app/src/client/services/AppContainer.js

@@ -26,12 +26,6 @@ export default class AppContainer extends Container {
       this.currentUser = JSON.parse(currentUserElem.textContent);
     }
 
-    const isSharedPageElem = document.getElementById('is-shared-page');
-
-    // check what kind of user
-    this.isGuestUser = this.currentUser == null;
-    this.isSharedUser = isSharedPageElem != null && this.currentUser == null;
-
     const userLocaleId = this.currentUser?.lang;
     this.i18n = i18nFactory(userLocaleId);