Skip to content

Commit 2c3f64f

Browse files
committed
Fixed DFL-3476: Update $ in Console to use querySelector() instead of getElementById().
1 parent 032eec9 commit 2c3f64f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/repl/commandtransformer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ cls.HostCommandTransformer = function() {
254254
{
255255
if (this.is_global_call(tokenlist, index))
256256
token[VALUE] = "(typeof $ == 'function' && $ || \
257-
function(e) { return document.getElementById(e); })";
257+
function(e) { return document.querySelector(e); })";
258258
};
259259

260260
this._hostcommands.$$ = function(token, tokenlist, index)

0 commit comments

Comments
 (0)