Browse Source

remove unnecessary code

Yuki Takei 4 năm trước cách đây
mục cha
commit
a924be21b2
1 tập tin đã thay đổi với 0 bổ sung6 xóa
  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);