diff --git a/package.json b/package.json index a07e9225c0..9819d7c4dd 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "clean": "rm -rf built", "minify": "webpack --optimize-minimize --optimize-dedupe", "start": "http-server -p 8000", - "test": "echo \"Error: no test specified\" && exit 1" + "test": "mocha" }, "repository": { "type": "git", @@ -42,8 +42,5 @@ "ts-loader": "^0.8.2", "typescript": "^2.0.8", "webpack": "^1.13.1" - }, - "scripts": { - "test": "mocha" } } diff --git a/src/Attachment.tsx b/src/Attachment.tsx index 16501fe3e8..596722f5dc 100644 --- a/src/Attachment.tsx +++ b/src/Attachment.tsx @@ -42,8 +42,8 @@ export const AttachmentView = (props: { { buttons.map(button =>
  • ) } ; - const imageWithOnLoad = (url: string) => - props.onImageLoad() } />; + const imageWithOnLoad = (url: string, thumbnailUrl?: string, autoPlay?:boolean, loop?: boolean) => + props.onImageLoad() } />; const audio = (audioUrl: string, autoPlay?:boolean, loop?: boolean) =>