Skip to content

Commit

Permalink
Fix no variable declarations in Range extractContents() method (#35524
Browse files Browse the repository at this point in the history
)
  • Loading branch information
T34-active authored Aug 20, 2024
1 parent 87b1277 commit 987c56d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/en-us/web/api/range/extractcontents/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ const list2 = document.getElementById("list2");
const button = document.getElementById("swap");

button.addEventListener("click", (e) => {
selection = window.getSelection();
const selection = window.getSelection();

for (let i = 0; i < selection.rangeCount; i++) {
const range = selection.getRangeAt(i);
Expand Down

0 comments on commit 987c56d

Please sign in to comment.