mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-24 09:27:31 +09:00
Use a fixed thumbnail placeholder for blank thumbs (failed to capture).
This commit is contained in:
parent
a9b9dc5096
commit
060aa7adeb
4 changed files with 97 additions and 5 deletions
|
|
@ -28,6 +28,9 @@ const MAX_THUMBNAIL_AGE_SECS = 172800; // 2 days == 60*60*24*2 == 172800 secs.
|
|||
*/
|
||||
const THUMBNAIL_DIRECTORY = "thumbnails";
|
||||
|
||||
// contains base64 version of a placeholder thumbnail
|
||||
#include "blankthumb.inc"
|
||||
|
||||
Cu.import("resource://gre/modules/XPCOMUtils.jsm", this);
|
||||
Cu.import("resource://gre/modules/PromiseWorker.jsm", this);
|
||||
Cu.import("resource://gre/modules/Promise.jsm", this);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue