Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
onInit() {
this.store.set("layout.mode", this.getLayoutMode());
ResizeManager.subscribe(() => {
this.store.set("layout.mode", this.getLayoutMode());
});
this.store.set('settings.showTooltips', true);
auth.onAuthStateChanged(user => {
if (!user) {
this.signInAnonymously();
return;
}
if (user.isAnonymous) {
this.store.set("user", {
id: user.uid,
name: "Anonymous",
componentDidMount() {
this.unResize = ResizeManager.subscribe(::this.componentDidUpdate);
this.unDropZone = registerDropZone(this);
this.componentDidUpdate();
}