-
-
Save FlorianRappl/2528f1b89db6d8d14c1894976c90be43 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.setData = (name, current) => { | |
const previous = data[name]; | |
data[name] = current; | |
window.dispatchEvent(new CustomEvent('changed-data', { | |
detail: { | |
name, | |
previous, | |
current, | |
}, | |
})); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment