Fixes for ESLint

This commit is contained in:
YFdyh000
2017-07-09 05:47:00 +08:00
parent af3e105a41
commit 0a745348f3
14 changed files with 39 additions and 26 deletions
+2 -2
View File
@@ -4,14 +4,14 @@ const contentBox = document.querySelector("#content");
/*
Make the content box editable as soon as the user mouses over the sidebar.
*/
window.addEventListener("mouseover", (e) => {
window.addEventListener("mouseover", () => {
contentBox.setAttribute("contenteditable", true);
});
/*
When the user mouses out, save the current contents of the box.
*/
window.addEventListener("mouseout", (e) => {
window.addEventListener("mouseout", () => {
contentBox.setAttribute("contenteditable", false);
browser.tabs.query({windowId: myWindowId, active: true}).then((tabs) => {
let contentToStore = {};