Skip to content

Commit 99a3f2e

Browse files
authored
Update codeit.js
1 parent c9cd9ed commit 99a3f2e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

lib/codeit.js

Lines changed: 5 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
@@ -1252,9 +1252,10 @@ class CodeitElement extends HTMLElement {
12521252

12531253
}
12541254

1255-
// if its an empty file
1256-
if (typeof(cd.childNodes[i] == 'undefined'))
1255+
// if it's an empty file
1256+
if (typeof(cd.childNodes[i] == 'undefined')) {
12571257
return [cd, 0];
1258+
}
12581259

12591260
// go to end of selected node
12601261
return [cd.childNodes[i], cd.childNodes[i].nodeValue.length];
@@ -1357,4 +1358,4 @@ class CodeitElement extends HTMLElement {
13571358

13581359
// define the codeit element
13591360
window.customElements.define('cd-el', CodeitElement);
1360-
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)