mirror of
https://github.com/mdn/webextensions-examples.git
synced 2026-04-18 15:28:37 +02:00
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:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user