Skip to content
This repository was archived by the owner on Feb 6, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion studio/prerender.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {PrerenderHydrateOptions} from '@stencil/core/internal/stencil-public-com
export const config: PrerenderConfig = {
hydrateOptions(url?: URL): PrerenderHydrateOptions {
const hydrate: PrerenderHydrateOptions = {
excludeComponents: ['deckgo-highlight-code', 'deckgo-slide-poll', 'deckgo-remote', 'app-editor'],
excludeComponents: ['deckgo-highlight-code', 'deckgo-slide-poll', 'deckgo-remote'],
};
return hydrate;
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ export class RemoteEventsHandler {
}

async destroy() {
if (!this.el) {
return;
}

await this.disconnect();

if (this.destroyConnectListener) {
Expand Down
6 changes: 5 additions & 1 deletion studio/src/app/pages/editor/app-editor/app-editor.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {Component, Element, h, JSX, Listen, Prop, State} from '@stencil/core';
import {Build, Component, Element, h, JSX, Listen, Prop, State} from '@stencil/core';

import {ItemReorderEventDetail, modalController, OverlayEventDetail} from '@ionic/core';

Expand Down Expand Up @@ -162,6 +162,10 @@ export class AppEditor {
}

async initOffline() {
if (Build.isServer) {
return;
}

// if we are offline we can't create a new deck or edit another one that the one we have marked as currently being edited offline
const offline: OfflineDeck = await this.offlineService.status();
if (offline !== undefined) {
Expand Down