Skip to content

Commit a6e1ab9

Browse files
committed
Add ?platform parameter to website
Used by TurboWarp/scratch-gui@6a1b267
1 parent 67b1c8e commit a6e1ab9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/index.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,12 @@ <h2>Privacy</h2>
217217
/** @type {HTMLElement} */
218218
const output = document.querySelector('.output');
219219

220+
const searchParams = new URLSearchParams(location.search);
221+
const platformParam = searchParams.get('platform');
222+
if (platformParam && Object.prototype.hasOwnProperty.call(sb3fix.platforms, platformParam)) {
223+
platformInput.value = platformParam;
224+
}
225+
220226
// Start handling drag events as soon as possible
221227
const dropIndicator = document.querySelector('.drop-indicator');
222228
document.addEventListener('dragover', (e) => {

0 commit comments

Comments
 (0)