diff --git a/preload.js b/preload.js index 0356728714..4c17d67f25 100644 --- a/preload.js +++ b/preload.js @@ -71,8 +71,7 @@ window.nodeNotifier = require('node-notifier'); window.loadImage = require('blueimp-load-image'); - const {autoOrientImage} = require('./js/modules/autoOrientImage'); - window.autoOrientImage = autoOrientImage; + window.autoOrientImage = require('./js/modules/autoOrientImage').autoOrientImage; // We pull this in last, because the native module involved appears to be sensitive to // /tmp mounted as noexec on Linux.