Skip to content

Commit b2c6c3e

Browse files
authored
Merge pull request #12 from github/update-deps
Update dependencies
2 parents 61c89bc + 481e495 commit b2c6c3e

File tree

3 files changed

+939
-468
lines changed

3 files changed

+939
-468
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ type StyleArgs = {
542542
trimFirst: boolean
543543
}
544544

545-
function applyStyle(button: Element, styles: {}) {
545+
function applyStyle(button: Element, stylesToApply: {}) {
546546
const toolbar = button.closest('markdown-toolbar')
547547
if (!(toolbar instanceof MarkdownToolbarElement)) return
548548

@@ -560,7 +560,7 @@ function applyStyle(button: Element, styles: {}) {
560560
trimFirst: false
561561
}
562562

563-
const style = {...defaults, ...styles}
563+
const style = {...defaults, ...stylesToApply}
564564

565565
const field = toolbar.field
566566
if (field) {

0 commit comments

Comments
 (0)