From b410399a16eb73da9c49b64f7ff16c208d04d318 Mon Sep 17 00:00:00 2001 From: Zach Fox Date: Fri, 14 Apr 2017 16:26:29 -0700 Subject: [PATCH] Resolve your paths, silly! --- scripts/system/html/js/SnapshotReview.js | 3 +-- scripts/system/snapshot.js | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/system/html/js/SnapshotReview.js b/scripts/system/html/js/SnapshotReview.js index cd650ea679..f140c54e09 100644 --- a/scripts/system/html/js/SnapshotReview.js +++ b/scripts/system/html/js/SnapshotReview.js @@ -11,7 +11,6 @@ // var paths = [], idCounter = 0, imageCount; -var loadingGifPath = '../../../resources/icons/loadingDark.gif'; function addImage(data) { if (!data.localPath) { return; @@ -85,7 +84,7 @@ window.onload = function () { if (messageOptions.containsGif) { if (messageOptions.processingGif) { imageCount = message.action.length + 1; // "+1" for the GIF that'll finish processing soon - message.action.unshift({ localPath: loadingGifPath }); + message.action.unshift({ localPath: messageOptions.loadingGifPath }); message.action.forEach(addImage); document.getElementById('p0').disabled = true; } else { diff --git a/scripts/system/snapshot.js b/scripts/system/snapshot.js index 0198866f26..6039bc09c1 100644 --- a/scripts/system/snapshot.js +++ b/scripts/system/snapshot.js @@ -239,6 +239,7 @@ function processingGifStarted(pathStillSnapshot) { { containsGif: true, processingGif: true, + loadingGifPath: Script.resolvePath(Script.resourcesPath() + 'icons/loadingDark.gif'), canShare: !!isDomainOpen(domainId), openFeedAfterShare: shouldOpenFeedAfterShare() }];