File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 1313HERE = os .path .abspath (os .path .dirname (__file__ ))
1414
1515# The name of the project
16+
1617name = "code_snippet"
1718
1819# Get our version
1920with open (os .path .join (HERE , 'package.json' )) as f :
2021 version = json .load (f )['version' ]
2122
23+
2224lab_path = os .path .join (HERE , name , "labextension" )
2325
2426# Representative files that should exist after a successful build
Original file line number Diff line number Diff line change @@ -184,7 +184,8 @@ function activateCodeSnippet(
184184 //if user just right-clicks cell(s) to save
185185 const curr = document . getElementsByClassName ( 'jp-Cell jp-mod-selected' ) ;
186186 const resultArray = [ ] ;
187- for ( let i = 1 ; i < curr . length ; i ++ ) {
187+ // changed i = 1 to i = 0.
188+ for ( let i = 0 ; i < curr . length ; i ++ ) {
188189 //loop through each cell
189190 const text = curr [ i ] as HTMLElement ;
190191 const textContent = text . innerText ;
You can’t perform that action at this time.
0 commit comments