Skip to content

Commit

Permalink
remove CQRS Bridged from HTML-Presentation-Export
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderZellober committed Oct 8, 2021
1 parent eefb236 commit 10d3fe7
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions app/domain-story-modeler/features/export/storyDownload.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ import { editMode, presentationMode, showCurrentStep } from '../replay/replayFun
let canvas;
let selection;

let multiplexSecret;
let multiplexId;

let replayOn = false;
let currentStep = 0;
let replaySteps = [];
Expand All @@ -32,12 +29,6 @@ export function initStoryDownload(inCanvas, inSelection, modeler) {
canvas = inCanvas;
selection = inSelection;
dsModeler = modeler;

// cors.bridged.cc is a CORS ANYWHERE server. For details: https://blog.bridged.xyz/cors-anywhere-for-everyone-free-reliable-cors-proxy-service-73507192714e
fetch('https://cors.bridged.cc/https://reveal-multiplex.glitch.me/token', { headers: { 'x-requested-with':'XMLHttpRequest' } }).then(res => res.json()).then((out) => {
multiplexSecret=out.secret;
multiplexId=out.socketId;
}).catch(err => console.error(err));
}

export async function downloadStory(filename) {
Expand Down Expand Up @@ -74,8 +65,6 @@ export async function downloadStory(filename) {
revealjsData.title = document.getElementById('title').innerHTML;
revealjsData.description = document.getElementById('infoText').innerHTML;
revealjsData.sentences = svgData;
revealjsData.multiplexSecret = multiplexSecret;
revealjsData.multiplexId = multiplexId;
let element;
element = document.createElement('a');
element.setAttribute(
Expand Down

0 comments on commit 10d3fe7

Please sign in to comment.