Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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