Replace var with let in examples (#484)

* Replace var with let in examples

store-collected-images/webextension-plain/deps/uuidv4.js

* Reverted third–party code
This commit is contained in:
rebloor
2022-08-11 04:27:28 +12:00
committed by GitHub
parent 1c0a24b2a6
commit 82217a05bc
42 changed files with 136 additions and 136 deletions

View File

@@ -1,6 +1,6 @@
"use strict";
var popupParameters;
let popupParameters;
browser.menus.create({
id: "remove_element",

View File

@@ -52,7 +52,7 @@
});
var highlightedBox;
let highlightedBox;
function highlightElement(element) {
removeHighlights();
let boundingRect = element.getBoundingClientRect();

View File

@@ -18,7 +18,7 @@
// if the given first parameter matches the info.targetElementId integer from
// the menus.onClicked or menus.onShown events.
if (!browser.menus || !browser.menus.getTargetElement) {
var menuTarget = null;
let menuTarget = null;
let cleanupIfNeeded = () => {
if (menuTarget && !document.contains(menuTarget)) menuTarget = null;
};