Skip to content

Commit

Permalink
playground: Export SBDL on window
Browse files Browse the repository at this point in the history
  • Loading branch information
GarboMuffin committed Aug 1, 2024
1 parent d9dbddd commit 955680f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,9 @@ <h2>Privacy</h2>

<script type="module">
import JSZip from 'jszip';
import {downloadProjectFromID} from './src/export-web.js';
import * as SBDL from './src/export-web.js';

window.SBDL = SBDL;

/**
* @param {string} text
Expand Down Expand Up @@ -591,7 +593,7 @@ <h2>Privacy</h2>
signal: localAbortController.signal
};

const project = await downloadProjectFromID(projectId, options);
const project = await SBDL.downloadProjectFromID(projectId, options);
mostRecentProject = project;

const title = project.title ? `${project.title} (${projectId})` : projectId;
Expand Down

0 comments on commit 955680f

Please sign in to comment.