Content
@
https://warpcast.com/~/channel/frames-v2
0 reply
0 recast
0 reaction
vrypan |--o--|
@vrypan.eth
If you want to add some basic Frames functionality to a static page, check out https://github.com/vrypan/farma/blob/github-pages/frame.js and how it is used inside the corresponding (very, very simple) index.html. The script will: - Call sdk.actions.ready() - If the page is displayed in a frame context, it will trigger sdk.actions.addFrame() and rewrite all absolute links to open with sdk.actions.openURL(). - If the page is displayed in a browser, it will inject a header that prompts the user to pen the page in Warpcast. Check the result at `farma.vrypan.net`, in your browser, click the Open in frame button, and see the same page as a frame.
1 reply
2 recasts
13 reactions
vrypan |--o--|
@vrypan.eth
If you checked/copied the script earlier, pls re-check, I've fixed some bugs.
1 reply
0 recast
2 reactions
artlu 🎩
@artlu
ty for this sir 2345 $degen these bare-bones, minimal (working!) examples can be life-savers for devs. It helped me narrow down and identify another blocker in my project. (if anyone else is struggling to get Frames V2 working with TanStack Start, hmu I gotchu now!!!!)
0 reply
0 recast
1 reaction