Skip to content

Commit ef80750

Browse files
committed
Updated the URL on reload in Pyxel MML Studio
1 parent 19b28fe commit ef80750

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
- Specified Tailwind CSS version 3.4.17 for Pyxel web pages
66
- Added links to web tools and examples for Pyxel in the READMEs
7+
- Updated the URL on reload in Pyxel MML Studio
78

89
## 2.5.6
910

wasm/mml-studio/index.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
}
3838
}
3939
</style>
40-
<script src="https://cdn.jsdelivr.net/gh/kitao/pyxel@2.5.6/wasm/pyxel.js"></script>
40+
<script src="https://cdn.jsdelivr.net/gh/kitao/pyxel/wasm/pyxel.js"></script>
4141
<script src="https://cdn.jsdelivr.net/npm/[email protected]/libs/lz-string.min.js"></script>
4242
</head>
4343
<body class="page">
@@ -320,6 +320,8 @@ <h1 class="mb-2 font-semibold text-2xl tracking-tight">
320320
const launchUrlHref = document.querySelector("#url");
321321
launchUrlHref.textContent = launchUrlHref.href = url;
322322

323+
window.history.replaceState(null, "", url);
324+
323325
let qrSize = Math.max(128, Math.min(url.length, 400));
324326
const qrImg = document.getElementById("qr-code");
325327
if (qrImg) {

0 commit comments

Comments
 (0)