From bd190dc73bdd3a4ca07abcac1478203b249b732e Mon Sep 17 00:00:00 2001 From: yflory Date: Thu, 20 Jun 2019 16:11:12 +0200 Subject: [PATCH] Fix thumbnails --- www/common/common-thumbnail.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/common/common-thumbnail.js b/www/common/common-thumbnail.js index 2a03715cd..34d44daf5 100644 --- a/www/common/common-thumbnail.js +++ b/www/common/common-thumbnail.js @@ -196,8 +196,8 @@ define([ }; Thumb.initPadThumbnails = function (common, opts) { - if (!opts.href || !opts.getContent) { - throw new Error("href and getContent are needed for thumbnails"); + if (!opts.type || !opts.getContent) { + throw new Error("type and getContent are needed for thumbnails"); } var oldThumbnailState; var mkThumbnail = function () {