.app launcher that opens it) into Slack, Arg posts a card with a picture of the app. Pasting a link is not the same as choosing to run the app, so by default Arg takes that picture without running your code. Your app’s source decides whether it may run.
A
.app launcher is pictured as the file it launches, so put the marker in that file. A launcher that opens a published Site gets no picture.
Opt in from HTML
Add thearg-live-preview metadata to the document’s <head>:
Opt in from TSX or JSX
Add the same element to the tree your component returns, or put a source directive at the top of the file:How the picture is taken
- Your app runs on the same isolated origin the Slack side panel uses, with no Arg session, so it cannot act as the person who shared the link.
arg.fsreads only the files the person who shared the link can open in Arg, and only read-only.- The picture is taken a few seconds after the page loads, at 1200 x 630.
- The picture is cached until the app’s file changes.