Skip to content

Commit

Permalink
Remove some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
gdonati78 committed Oct 30, 2024
1 parent 6597926 commit e8d23ba
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions engine/src/main/resources/template/snippets/js.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -125,14 +125,13 @@ limitations under the License.
if (${expandPreviousScenarioRuns?c}) {
$("[data-cluecumber-item='multi-run-button']").click();
}
// Check and apply dark mode if it was previously set
const isDarkMode = localStorage.getItem('darkMode') === 'enabled';
if (isDarkMode) {
document.documentElement.classList.add('dark-mode');
}
updateToggleButton(isDarkMode);
// Attach event listener to the toggle button
document.getElementById('dark-mode-toggle').addEventListener('click', toggleDarkMode);
}
);
Expand Down

0 comments on commit e8d23ba

Please sign in to comment.