Skip to content

Commit e95d53c

Browse files
committed
web: Display resolved URL instead of input URL
After entering a URL in the extension player, Ruffle resolves it, potentially adding a protocol. This resolved URL is now displayed in the URL input element instead of the original input URL. This improves the transparency of which protocol is used and makes it easier for the user to change it.
1 parent 6ec2e97 commit e95d53c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

web/packages/extension/src/player.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,14 +313,15 @@ async function loadSwf(swfUrl: string) {
313313
swfUrl = url.toString();
314314
}
315315

316+
webURL.value = swfUrl;
316317
document.title = swfUrl
317318
.split("/")
318319
.filter((item) => item !== "")
319320
.slice(-1)[0]!;
320-
321-
const options = await utils.getExplicitOptions();
322321
localFileName.textContent = document.title;
323322
localFileInput.value = "";
323+
324+
const options = await utils.getExplicitOptions();
324325
load({
325326
...options,
326327
url: swfUrl,

0 commit comments

Comments
 (0)