Removed unused parameters in scripts

This commit is contained in:
2019-04-22 18:06:50 +09:00
parent 6e4097b3b6
commit b78785cadc
19 changed files with 31 additions and 30 deletions

View File

@ -21,7 +21,7 @@ export default class Diff {
let container = document.createElement("main")
container.innerHTML = html
return new Promise((resolve, reject) => {
return new Promise((resolve, _) => {
Diff.childNodes(aRoot, container)
this.mutations.wait(resolve)
})
@ -29,7 +29,7 @@ export default class Diff {
// root will diff the document root element with the given HTML string and apply DOM mutations.
static root(aRoot: HTMLElement, html: string) {
return new Promise((resolve, reject) => {
return new Promise((resolve, _) => {
let rootContainer = document.createElement("html")
rootContainer.innerHTML = html.replace("<!DOCTYPE html>", "")