Created
February 4, 2020 08:46
-
-
Save danhollick/12b176f94a903a868a7d96e6d7ebda6a to your computer and use it in GitHub Desktop.
listen for messages
This file contains hidden or 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
figma.ui.onmessage = msg => { | |
if (msg.type === 'swap') { | |
console.log(msg) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment