Skip to content

Commit

Permalink
release: v1.10.1
Browse files Browse the repository at this point in the history
  • Loading branch information
surunzi committed Nov 4, 2019
1 parent 14cfda5 commit fcc223e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## v1.10.1 (4 Nov 2019)

* fix(console): error display when js execution disabled

## v1.10.0 (4 Nov 2019)

* chore: updated to babel7, must add .default if using require.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eruda",
"version": "1.10.0",
"version": "1.10.1",
"description": "Console for Mobile Browsers",
"main": "eruda.js",
"scripts": {
Expand Down
5 changes: 3 additions & 2 deletions src/Console/Console.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,14 +105,15 @@ export default class Console extends Tool {
}
_enableJsExecution(enabled) {
const $el = this._$el
const $container = $el.find('.eruda-console-container')
const $jsInput = $el.find('.eruda-js-input')

if (enabled) {
$jsInput.show()
$el.rmClass('eruda-js-input-hidden')
$container.rmClass('eruda-js-input-hidden')
} else {
$jsInput.hide()
$el.addClass('eruda-js-input-hidden')
$container.addClass('eruda-js-input-hidden')
}
}
_registerListener() {
Expand Down

0 comments on commit fcc223e

Please sign in to comment.