change arg name

This commit is contained in:
AlecM33
2023-06-26 22:17:26 -04:00
parent b341b008c2
commit d1850e5ef2

View File

@@ -3,14 +3,14 @@ export const toast = (
type, positionAtTop = true,
dispelAutomatically = true,
duration = null,
innerHTML = false
domChild = false
) => {
if (message && type) {
buildAndInsertMessageElement(message, type, positionAtTop, dispelAutomatically, duration, innerHTML);
buildAndInsertMessageElement(message, type, positionAtTop, dispelAutomatically, duration, domChild);
}
};
function buildAndInsertMessageElement (message, type, positionAtTop, dispelAutomatically, duration, domChild = false) {
function buildAndInsertMessageElement (message, type, positionAtTop, dispelAutomatically, duration, domChild) {
cancelCurrentToast();
const messageEl = document.createElement('div');
messageEl.classList.add('info-message');