Skip to content

Commit aa4e697

Browse files
committed
Fix future js
1 parent dcf3fc0 commit aa4e697

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/highlightjs-line-numbers.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,10 @@
252252

253253
function getSingleLineOption (options) {
254254
var defaultValue = false;
255-
return options.singleLine ?? defaultValue;
255+
if (!!options.singleLine) {
256+
return options.singleLine;
257+
}
258+
return defaultValue;
256259
}
257260

258261
function getStartFromOption (element, options) {

0 commit comments

Comments
 (0)