Skip to content

Commit

Permalink
Fixes bug: "undefined" when clicking on URL bar
Browse files Browse the repository at this point in the history
  • Loading branch information
tombh committed Feb 9, 2018
1 parent bb313f5 commit 3091510
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions webext/src/background/tty_commands_mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ export default (MixinBase) => class extends MixinBase {
this.sendToCurrentTab('/window_stop');
break;
default:
this.urlBarUserContent = "";
this.isURLBarFocused = true;
}
return true;
Expand All @@ -89,6 +90,7 @@ export default (MixinBase) => class extends MixinBase {
this.urlBarUserContent = this.urlBarUserContent.slice(0, -1);
return;
}
if (typeof char === 'undefined') return;
this.urlBarUserContent += char;
}

Expand Down

0 comments on commit 3091510

Please sign in to comment.