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

@@ -6,7 +6,7 @@ document.addEventListener("click", (e) => {
if (e.target.id === "window-update-size_768") {
getCurrentWindow().then((currentWindow) => {
var updateInfo = {
let updateInfo = {
width: 768,
height: 1024
};
@@ -17,7 +17,7 @@ document.addEventListener("click", (e) => {
if (e.target.id === "window-update-minimize") {
getCurrentWindow().then((currentWindow) => {
var updateInfo = {
let updateInfo = {
state: "minimized"
};
@@ -80,13 +80,13 @@ document.addEventListener("click", (e) => {
}
else if (e.target.id === "window-resize-all") {
var gettingAll = browser.windows.getAll();
let gettingAll = browser.windows.getAll();
gettingAll.then((windows) => {
var updateInfo = {
let updateInfo = {
width: 1024,
height: 768
};
for (var item of windows) {
for (let item of windows) {
browser.windows.update(item.id, updateInfo);
}
});