このコミットが含まれているのは:
@@ -211,6 +211,15 @@ export const apiDownload = async (
|
||||
const { token } = await apiPost<{ token: string }> (`${path}/prepare`, body, { locale })
|
||||
if (typeof token !== 'string' || token.length === 0)
|
||||
throw new Error ('Missing download token')
|
||||
startAPIDownload (path, token, onError)
|
||||
}
|
||||
|
||||
|
||||
export const startAPIDownload = (
|
||||
path: string,
|
||||
token: string,
|
||||
onError?: () => void,
|
||||
): void => {
|
||||
const frame = document.createElement ('iframe')
|
||||
frame.hidden = true
|
||||
frame.addEventListener ('load', () => {
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする