Update eslint and .travis.yml (#259)

* simplify .travis.yml

* Fixes error and warning from eslint

15:32  error  Unnecessary escape character: \?  no-useless-escape
This commit is contained in:
YFdyh000
2017-08-11 15:30:28 +08:00
committed by wbamberg
parent 750870481e
commit 050b5fa9d0
4 changed files with 4 additions and 8 deletions

View File

@@ -54,7 +54,7 @@ document.getElementById("button_background").addEventListener("click", () => {
});
const inspectString = "inspect(document.querySelector('h1'))";
document.getElementById("button_h1").addEventListener("click", function(){
document.getElementById("button_h1").addEventListener("click", () => {
browser.devtools.inspectedWindow.eval(inspectString)
.then(handleResult);
});