Skip to content

Commit

Permalink
Fix param loading in demo
Browse files Browse the repository at this point in the history
  • Loading branch information
infojunkie committed Aug 11, 2024
1 parent 5e4350c commit 95c9ad3
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion demo/demo.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,8 @@ document.addEventListener('DOMContentLoaded', async () => {
const params = new URLSearchParams(document.location.search);
try {
const stored = JSON.parse(window.localStorage.getItem(LOCALSTORAGE_KEY));
g_state.params = new URLSearchParams([...stored.params, ...[...params.entries()]]);
g_state.params = new URLSearchParams([...stored.params]);
params.entries().forEach(([key, value]) => { g_state.params.set(key, value); });
g_state.options = stored.options;
}
catch {
Expand Down
4 changes: 2 additions & 2 deletions dist/musicxml-player.esm.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* musicxml-player v0.18.0
* musicxml-player v0.18.1
* (c) Karim Ratib <[email protected]> (https://github.com/infojunkie)
* Released under the GPL-3.0-only License.
*/
Expand Down Expand Up @@ -12588,7 +12588,7 @@ const timingObjectConstructor = createTimingObjectConstructor(createCalculateTim
// @todo Expose an isSupported flag which checks for performance.now() support.

var name = "musicxml-player";
var version = "0.18.0";
var version = "0.18.1";
var description = "A simple JavaScript component that loads and plays MusicXML files in the browser using Web Audio and Web MIDI.";
var main = "dist/musicxml-player.esm.js";
var type = "module";
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "musicxml-player",
"version": "0.18.0",
"version": "0.18.1",
"description": "A simple JavaScript component that loads and plays MusicXML files in the browser using Web Audio and Web MIDI.",
"main": "dist/musicxml-player.esm.js",
"type": "module",
Expand Down

0 comments on commit 95c9ad3

Please sign in to comment.