Skip to content

Commit

Permalink
[js] Annoying it's on bot.userAgent not goog.
Browse files Browse the repository at this point in the history
  • Loading branch information
AutomatedTester committed Sep 21, 2021
1 parent defe1e3 commit f8e643f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion javascript/atoms/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ bot.events.KeyboardEventFactory_.prototype.create = function (target, opt_args)
var doc = goog.dom.getOwnerDocument(target);
var event;

if (goog.userAgent.GECKO && !goog.isEngineVersion(93)) {
if (goog.userAgent.GECKO && !bot.userAgent.isEngineVersion(93)) {
var view = goog.dom.getWindow(doc);
var keyCode = args.charCode ? 0 : args.keyCode;
event = doc.createEvent('KeyboardEvent');
Expand Down

0 comments on commit f8e643f

Please sign in to comment.