Prechádzať zdrojové kódy

fix bug when note is open and user tries to open non existent note

Daniel Bohry 1 mesiac pred
rodič
commit
caf12e47f6
1 zmenil súbory, kde vykonal 0 pridanie a 9 odobranie
  1. 0 9
      src/main/resources/static/script.js

+ 0 - 9
src/main/resources/static/script.js

@@ -270,15 +270,6 @@ function showNoteId(id) {
     }
 }
 
-function hideNoteId() {
-    const noteIdDisplay = document.getElementById('noteIdDisplay');
-    if (noteIdDisplay) {
-        noteIdDisplay.style.display = 'none';
-    } else {
-        console.error('Element with ID "noteIdDisplay" not found in hideNoteId');
-    }
-}
-
 async function copyNoteLink() {
     try {
         const noteIdDisplay = document.getElementById('noteIdDisplay');