I have been exploring the Electron Framework using a JavaScript toolkit known as Xel. In my main.js file, I am working with the following syntax:
document.querySelector("menu.selected").className.remove('selected')
In my Xel code snippet, I have a situation where selected is set as a pure HTML Class:
<x-tab selected class="menu">
I understand that it's not recommended to use something like this without specifying a Class="name". However, I am unsure how to access the current value of selected. When checking the console, I encountered the error message:
Uncaught TypeError: Cannot read property 'className' of null