File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ const demoBtns = document.querySelectorAll('.js-container-target')
4
4
// Listen for demo button clicks
5
5
Array . prototype . forEach . call ( demoBtns , function ( btn ) {
6
6
btn . addEventListener ( 'click' , function ( event ) {
7
- const parent = event . target . parentElement ;
7
+ const parent = event . target . parentElement
8
8
9
9
// Toggles the "is-open" class on the demo's parent element.
10
10
parent . classList . toggle ( 'is-open' )
@@ -20,7 +20,7 @@ Array.prototype.forEach.call(demoBtns, function (btn) {
20
20
} )
21
21
22
22
// Default to the demo that was active the last time the app was open
23
- const buttonId = settings . get ( 'activeDemoButtonId' ) ;
23
+ const buttonId = settings . get ( 'activeDemoButtonId' )
24
24
if ( buttonId ) {
25
25
document . getElementById ( buttonId ) . click ( )
26
26
}
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ function handleSectionTrigger (event) {
22
22
23
23
// Save currently active button in localStorage
24
24
const buttonId = event . target . getAttribute ( 'id' )
25
- settings . set ( 'activeSectionButtonId' , buttonId ) ;
25
+ settings . set ( 'activeSectionButtonId' , buttonId )
26
26
}
27
27
28
28
function activateDefaultSection ( ) {
You can’t perform that action at this time.
0 commit comments