Skip to content

Commit

Permalink
Removed deprecated HTML API
Browse files Browse the repository at this point in the history
  • Loading branch information
salmonb committed Oct 5, 2023
1 parent cb7509a commit ee4f8df
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,4 @@ public static void loadScript(String src, Runnable onLoad) {
document.head.appendChild(script);
}

public static void onNodeInsertedIntoDocument(Node node, Runnable runnable) {
// Deprecated API! TODO: use MutationObserver instead
node.addEventListener("DOMNodeInsertedIntoDocument", evt -> runnable.run());
}
}

0 comments on commit ee4f8df

Please sign in to comment.