diff options
Diffstat (limited to 'devtools/client/webconsole/components/Input')
-rw-r--r-- | devtools/client/webconsole/components/Input/EagerEvaluation.js | 2 | ||||
-rw-r--r-- | devtools/client/webconsole/components/Input/JSTerm.js | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/devtools/client/webconsole/components/Input/EagerEvaluation.js b/devtools/client/webconsole/components/Input/EagerEvaluation.js index 52d5467b45..7dd1053cd1 100644 --- a/devtools/client/webconsole/components/Input/EagerEvaluation.js +++ b/devtools/client/webconsole/components/Input/EagerEvaluation.js @@ -45,7 +45,7 @@ class EagerEvaluation extends Component { }; } - static getDerivedStateFromError(error) { + static getDerivedStateFromError() { return { hasError: true }; } diff --git a/devtools/client/webconsole/components/Input/JSTerm.js b/devtools/client/webconsole/components/Input/JSTerm.js index f00ddd66b0..6a5cbc31bb 100644 --- a/devtools/client/webconsole/components/Input/JSTerm.js +++ b/devtools/client/webconsole/components/Input/JSTerm.js @@ -758,7 +758,7 @@ class JSTerm extends Component { async _openFile() { const fp = Cc["@mozilla.org/filepicker;1"].createInstance(Ci.nsIFilePicker); fp.init( - this.webConsoleUI.document.defaultView, + this.webConsoleUI.document.defaultView.browsingContext, l10n.getStr("webconsole.input.openJavaScriptFile"), Ci.nsIFilePicker.modeOpen ); @@ -891,9 +891,8 @@ class JSTerm extends Component { * * @param {CodeMirror} cm: codeMirror instance * @param {String} key: The key that was handled - * @param {Event} e: The keypress event */ - _onEditorKeyHandled(cm, key, e) { + _onEditorKeyHandled(cm, key) { // The autocloseBracket addon handle closing brackets keys when they're typed, but // there's already an existing closing bracket. // ex: |