pinokiod 3.16.0 → 3.16.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pinokiod",
3
- "version": "3.16.0",
3
+ "version": "3.16.1",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1703,7 +1703,11 @@ body.dark .appcanvas {
1703
1703
  // clicked dev mode menu => switch to dev
1704
1704
  // run mode => switch to dev mode
1705
1705
  location.hash = ""
1706
- location.pathname = location.pathname + "/dev"
1706
+ if (location.pathname.endsWith("/")) {
1707
+ location.pathname = location.pathname + "dev"
1708
+ } else {
1709
+ location.pathname = location.pathname + "/dev"
1710
+ }
1707
1711
  } else {
1708
1712
  // regular menu
1709
1713
  target.closest(".nested-menu").querySelector(".submenu").classList.toggle("hidden")