Skip to content

Commit 6c27acd

Browse files
author
Tim Berners-Lee
committed
container.appendChild(butttonDiv)
1 parent be77785 commit 6c27acd

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/widgets/buttons.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ export function faviconOrDefault (dom: HTMLDocument, x: NamedNode) {
441441
*/
442442
export function deleteButtonWithCheck (
443443
dom: HTMLDocument,
444-
_container: HTMLElement, // Used to interfere with style of this
444+
container?: HTMLElement, // Used to interfere with style of this
445445
noun: string,
446446
deleteFunction: () => any
447447
) {
@@ -509,6 +509,9 @@ export function deleteButtonWithCheck (
509509
},
510510
false
511511
)
512+
if (container) { // Old API
513+
container.appendChild(buttonDiv)
514+
}
512515
return buttonDiv // deleteButtonElt
513516
}
514517

0 commit comments

Comments
 (0)