diff --git a/sudoku.js b/sudoku.js index 24fbe91..08e1444 100644 --- a/sudoku.js +++ b/sudoku.js @@ -833,18 +833,10 @@ class Sudoku extends HTMLElement { customElements.define("my-sudoku", Sudoku); function generateIdByPosition(element) { - // Get the parent element const parent = element.parentNode; - - // Get the index of the element within its parent const index = Array.prototype.indexOf.call(parent.children, element); - - // Generate a unique ID using the tag name and index const generatedId = `${element.tagName.toLowerCase()}-${index}`; - - // Assign the generated ID to the element element.id = generatedId.replace('div-', 'session-key-'); - return element.id; }