File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed
Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 257257 // This takes the color from the color picker to show a live preview
258258 $ (function () {
259259
260+ /**
261+ * 5. Add an event listener to toggle the reset
262+ */
263+ clearButton .addEventListener (" click" , (event ) => {
264+ localStorage .removeItem (" theme" );
265+ });
266+
267+
268+
260269 $ (' #nav-link-color' ).colorpicker ().on (' changeColor' , function (e ) {
261270 var color = e .color .toString (' rgba' );
262271 // $('.navbar-nav > li > a').css('background-color', header_color);
Original file line number Diff line number Diff line change @@ -1902,12 +1902,6 @@ function updateThemeOnHtmlEl({ theme }) {
19021902 currentThemeSetting = newTheme;
19031903 });
19041904
1905- /* *
1906- * 5. Add an event listener to toggle the reset
1907- */
1908- clearButton .addEventListener (" click" , (event ) => {
1909- localStorage .removeItem (" theme" );
1910- });
19111905
19121906
19131907
You can’t perform that action at this time.
0 commit comments