Skip to content
This repository was archived by the owner on Jan 31, 2026. It is now read-only.

scriptPath() should not fail when menu.js is included in a bundle#105

Open
kcooney wants to merge 1 commit intodenehyg:masterfrom
kcooney:script-path-bundled-js
Open

scriptPath() should not fail when menu.js is included in a bundle#105
kcooney wants to merge 1 commit intodenehyg:masterfrom
kcooney:script-path-bundled-js

Conversation

@kcooney
Copy link

@kcooney kcooney commented Jan 19, 2025

Since import.meta.url is a runtime feature, it will not exist if the menu.js code is bundled. This change updates scriptPath() to check if import.meta.url exists before trying to dereferencing it, enabling the calculation of options.path to fallback to 'plugin/menu/'.

Since import.meta.url is a runtime feature, it will not exist if the
menu.js code is bundled. This change updates scriptPath() to check if
import.meta.url exists before trying to dereferencing it, enabling the
calculation of options.path to fallback to 'plugin/menu/'.
petri added a commit to koodaamo/reveal.js-menu that referenced this pull request Jan 12, 2026
[Upstream denehyg#105] scriptPath() should not fail when menu.js is included in a bundle
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments