Skip to content

Commit

Permalink
Merge pull request #12 from github/update-deps
Browse files Browse the repository at this point in the history
Update dependencies
  • Loading branch information
koddsson authored Jul 3, 2019
2 parents 61c89bc + 481e495 commit b2c6c3e
Show file tree
Hide file tree
Showing 3 changed files with 939 additions and 468 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ type StyleArgs = {
trimFirst: boolean
}

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

Expand All @@ -560,7 +560,7 @@ function applyStyle(button: Element, styles: {}) {
trimFirst: false
}

const style = {...defaults, ...styles}
const style = {...defaults, ...stylesToApply}

const field = toolbar.field
if (field) {
Expand Down
Loading

0 comments on commit b2c6c3e

Please sign in to comment.