blob: 915aae6b859905a9d234dfc84f5c98ce9e689772 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
import * as sfw from 'sfw';
const { Input } = sfw.element.native;
export async function upload_to_timeline() {
const input = Input.new({
type: 'file',
multiple: true,
accept: 'image/jpeg',
})
input.click();
}
export async function upload_to_profile() {
const input = Input.new({
type: 'file',
multiple: false,
accept: 'image/jpeg',
})
input.click();
}
|