excalidraw-collaboration
Version:
Excalidraw as a React component
2 lines (1 loc) • 342 B
JavaScript
import{Commands as r,subsetToBinary as t}from"./subset-shared.chunk";var s=import.meta.url?new URL(import.meta.url):void 0;typeof window>"u"&&typeof self<"u"&&(self.onmessage=async e=>{switch(e.data.command){case r.Subset:let a=await t(e.data.arrayBuffer,e.data.codePoints);self.postMessage(a,{transfer:[a]});break}});export{s as WorkerUrl};