From 95c9ad33ba7fde48d0338516a6cf7ad0a0413a2a Mon Sep 17 00:00:00 2001 From: infojunkie Date: Sun, 11 Aug 2024 13:32:35 -0700 Subject: [PATCH] Fix param loading in demo --- demo/demo.mjs | 3 ++- dist/musicxml-player.esm.js | 4 ++-- package-lock.json | 4 ++-- package.json | 2 +- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/demo/demo.mjs b/demo/demo.mjs index 15e1fe3..2949ab6 100644 --- a/demo/demo.mjs +++ b/demo/demo.mjs @@ -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 { diff --git a/dist/musicxml-player.esm.js b/dist/musicxml-player.esm.js index 15ded7e..1a4cb3a 100644 --- a/dist/musicxml-player.esm.js +++ b/dist/musicxml-player.esm.js @@ -1,5 +1,5 @@ /*! - * musicxml-player v0.18.0 + * musicxml-player v0.18.1 * (c) Karim Ratib (https://github.com/infojunkie) * Released under the GPL-3.0-only License. */ @@ -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"; diff --git a/package-lock.json b/package-lock.json index 80cd976..354adc7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "musicxml-player", - "version": "0.18.0", + "version": "0.18.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "musicxml-player", - "version": "0.18.0", + "version": "0.18.1", "hasInstallScript": true, "license": "GPL-3.0-only", "dependencies": { diff --git a/package.json b/package.json index 4821f89..80676b7 100644 --- a/package.json +++ b/package.json @@ -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",