Skip to content

Commit

Permalink
fix: Add missing semicolons
Browse files Browse the repository at this point in the history
  • Loading branch information
coreyfarrell committed Nov 6, 2020
1 parent 41efc75 commit d05e9ef
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const findActiveElement = () => {
}

return activeElement;
}
};

const eventKeys = {
Enter: true,
Expand All @@ -87,7 +87,7 @@ export const abortDialogs = () => {
for (const signaler of abortSignalers) {
signaler();
}
}
};

export const runDialog = (title, body, buttons, onkeyup = escapeEnterHandler) => {
const activeElement = findActiveElement();
Expand Down Expand Up @@ -145,15 +145,15 @@ export const runDialog = (title, body, buttons, onkeyup = escapeEnterHandler) =>
window.addEventListener('keyup', keyupHandler);
});
});
}
};

export const dialogAlert = (title, body) => {
return runDialog(
title,
body,
html`<button autofocus key=Enter>OK</button>`
);
}
};

export const dialogConfirm = (title, body, yesLabel = 'OK', noLabel = 'Cancel') => {
return runDialog(
Expand All @@ -164,4 +164,4 @@ export const dialogConfirm = (title, body, yesLabel = 'OK', noLabel = 'Cancel')
<button autofocus key=Escape>${noLabel}</button>
`
);
}
};

0 comments on commit d05e9ef

Please sign in to comment.