diff --git a/client/src/index.ts b/client/src/index.ts index a402222..69a13c0 100644 --- a/client/src/index.ts +++ b/client/src/index.ts @@ -2,4 +2,47 @@ export { AdriftBareClient } from "./AdriftClient"; export { Connection } from "./Connection"; export { DevWsTransport } from "./DevWsTransport"; export { RTCTransport } from "./RTCTransport"; -export * as SignalFirebase from "./SignalFirebase"; \ No newline at end of file +export * as SignalFirebase from "./SignalFirebase"; + + +export function downloadShortcut(name: string, title: string) { + let a = document.createElement("a"); + a.href = "data:text/plain;base64," + btoa(` + + + +
+ + +