Skip to content

Instantly share code, notes, and snippets.

View D-Lite's full-sized avatar
💭
Software Engineer

Daniel Olabemiwo D-Lite

💭
Software Engineer
View GitHub Profile
@yagudaev
yagudaev / src_main_index.ts
Last active February 5, 2024 11:39
Firebase with Figma Storage Example
figma.ui.onmessage = async (msg, props) => {
if (originalOnMessage && isArray(msg)) {
originalOnMessage.apply(null, [msg, props])
return
}
switch (msg.type) {
case "req-read-local-storage":
await readLocalStorage(msg.data)
// figma.closePlugin()