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 13
13
HERE = os .path .abspath (os .path .dirname (__file__ ))
14
14
15
15
# The name of the project
16
+
16
17
name = "code_snippet"
17
18
18
19
# Get our version
19
20
with open (os .path .join (HERE , 'package.json' )) as f :
20
21
version = json .load (f )['version' ]
21
22
23
+
22
24
lab_path = os .path .join (HERE , name , "labextension" )
23
25
24
26
# 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(
184
184
//if user just right-clicks cell(s) to save
185
185
const curr = document . getElementsByClassName ( 'jp-Cell jp-mod-selected' ) ;
186
186
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 ++ ) {
188
189
//loop through each cell
189
190
const text = curr [ i ] as HTMLElement ;
190
191
const textContent = text . innerText ;
You can’t perform that action at this time.
0 commit comments