Skip to content

Commit 7b95efb

Browse files
authored
Update codeit.js
1 parent 7683cf5 commit 7b95efb

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

lib/codeit.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
/*
66
77
codeit.js
8-
v2.8.1
8+
v2.8.2
99
MIT License
1010
1111
https://codeit.codes
@@ -1251,9 +1251,11 @@ class CodeitElement extends HTMLElement {
12511251
}
12521252

12531253
}
1254-
//If its an empty file: @@
1255-
if( typeof(cd.childNodes[i] == 'undefined'))
1254+
1255+
// if it's an empty file
1256+
if (typeof(cd.childNodes[i] == 'undefined')) {
12561257
return [cd, 0];
1258+
}
12571259

12581260
// go to end of selected node
12591261
return [cd.childNodes[i], cd.childNodes[i].nodeValue.length];
@@ -1356,4 +1358,4 @@ class CodeitElement extends HTMLElement {
13561358

13571359
// define the codeit element
13581360
window.customElements.define('cd-el', CodeitElement);
1359-
console.log('%ccodeit.js 2.8.1', 'font-style: italic; color: gray');
1361+
console.log('%ccodeit.js 2.8.2', 'font-style: italic; color: gray');

0 commit comments

Comments
 (0)