pinokiod 1.1.3 → 1.1.5

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": "1.1.3",
3
+ "version": "1.1.5",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -408,6 +408,9 @@ body.dark .loader-popup {
408
408
  body.dark .loader-container {
409
409
  background: rgba(255,255,255,0.3);
410
410
  }
411
+ #menu {
412
+ display: none;
413
+ }
411
414
  @media only screen and (max-width: 480px) {
412
415
  .app-info {
413
416
  display: flex;
@@ -436,6 +439,9 @@ body.dark .loader-container {
436
439
  .grid-btns {
437
440
  display: none;
438
441
  }
442
+ #menu {
443
+ display: block;
444
+ }
439
445
  }
440
446
  </style>
441
447
  </head>
@@ -688,7 +694,7 @@ const renderSelection = (e, force) => {
688
694
  console.log("> url", url)
689
695
  document.querySelector("#open-browser").href = url
690
696
  document.querySelector("#clone-tab").setAttribute("data-href", url)
691
- document.querySelector("#location").value = url
697
+ // document.querySelector("#location").value = url
692
698
 
693
699
 
694
700
  // select the selected target element (tab)
@@ -1031,10 +1037,12 @@ const addTab = async (url) => {
1031
1037
 
1032
1038
 
1033
1039
 
1034
- document.querySelector("#menu").addEventListener("click", async (e) => {
1035
- location.hash = ""
1036
- renderSelection()
1037
- })
1040
+ if (document.querySelector("#menu")) {
1041
+ document.querySelector("#menu").addEventListener("click", async (e) => {
1042
+ location.hash = ""
1043
+ renderSelection()
1044
+ })
1045
+ }
1038
1046
  document.querySelector(".app-info").addEventListener("click", async (e) => {
1039
1047
  e.preventDefault()
1040
1048
  e.stopPropagation()