From e2eb8e36b017b048d57602fca14e45d657e0e1a1 Mon Sep 17 00:00:00 2001 From: Daniel Gasienica Date: Mon, 12 Feb 2018 16:25:26 -0500 Subject: [PATCH] Expose `Attachment` type through `Whisper.Attachment` --- preload.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/preload.js b/preload.js index 32f867377..faebdd71e 100644 --- a/preload.js +++ b/preload.js @@ -74,6 +74,9 @@ const {autoOrientImage} = require('./js/modules/auto_orient_image'); window.autoOrientImage = autoOrientImage; + window.Whisper = window.Whisper || {}; + window.Whisper.Attachment = require('./js/modules/types/attachment'); + // We pull this in last, because the native module involved appears to be sensitive to // /tmp mounted as noexec on Linux. require('./js/spell_check');