matrix-art

An image gallery for Matrix
git clone git://archive.git.mtrnord.blog/MTRNord/matrix-art.git
Log | Files | Refs | README | LICENSE

commit b18242e4d58f3db47310dea58323cc0e3514501b
parent afe33744635a34b56a579e4c8f261b187c9289e6
Author: MTRNord <mtrnord1@gmail.com>
Date:   Mon, 18 Apr 2022 23:01:20 +0200

Debug why preview doesnt work

Diffstat:
Msrc/main.tsx | 4++++
Msrc/pages/Home.tsx | 1-
2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/main.tsx b/src/main.tsx @@ -46,7 +46,9 @@ function load() { MatrixClient.new().then((client) => { // @ts-ignore its fine... window.client = client; + console.log("Client loaded"); client.start().then(() => { + console.log("Client started"); // eslint-disable-next-line @typescript-eslint/no-non-null-assertion render(<App />, document.querySelector('#app')!); }); @@ -54,7 +56,9 @@ function load() { } loadOlm().then((): void => { + console.log("Olm loaded"); load(); }).catch(() => { + console.log("Olm not loaded"); load(); }); \ No newline at end of file diff --git a/src/pages/Home.tsx b/src/pages/Home.tsx @@ -38,7 +38,6 @@ export class Home extends PureComponent<any, State> { componentWillUnmount() { window.removeEventListener('resize', () => this.setState({ columns: this.settingColumns() })); - this.state.lightbox?.destroy(); } render() {