We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57403a8 commit ed30ed7Copy full SHA for ed30ed7
src/DebugBar/Resources/widgets.js
@@ -48,7 +48,7 @@ if (typeof(PhpDebugBar) == 'undefined') {
48
*/
49
var highlight = PhpDebugBar.Widgets.highlight = function(code, lang) {
50
if (typeof(code) === 'string') {
51
- if (!hljs) {
+ if (typeof(hljs) === 'undefined') {
52
return htmlize(code);
53
}
54
if (lang) {
@@ -57,7 +57,7 @@ if (typeof(PhpDebugBar) == 'undefined') {
57
return hljs.highlightAuto(code).value;
58
59
60
- if (hljs) {
+ if (typeof(hljs) === 'object') {
61
code.each(function(i, e) { hljs.highlightBlock(e); });
62
63
return code;
0 commit comments