Skip to content

Commit

Permalink
emit klass on preference-updated event
Browse files Browse the repository at this point in the history
  • Loading branch information
owaiswiz committed Feb 12, 2024
1 parent 53e64c4 commit 4058b9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engine/app/helpers/preflex/preferences_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class PreflexPreference {
localStorage.setItem(this.localStorageKey, JSON.stringify(this.dataLocal))
this.updateOnServer(name, value)
document.dispatchEvent(new CustomEvent('preflex:preference-updated', { detail: { name, value } }))
document.dispatchEvent(new CustomEvent('preflex:preference-updated', { detail: { klass: this.klass, name, value } }))
}
updateOnServer(name, value) {
Expand Down

0 comments on commit 4058b9b

Please sign in to comment.