Resolve your paths, silly!

This commit is contained in:
Zach Fox 2017-04-14 16:26:29 -07:00
parent 85e5173abe
commit b410399a16
2 changed files with 2 additions and 2 deletions

View file

@ -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 {

View file

@ -239,6 +239,7 @@ function processingGifStarted(pathStillSnapshot) {
{
containsGif: true,
processingGif: true,
loadingGifPath: Script.resolvePath(Script.resourcesPath() + 'icons/loadingDark.gif'),
canShare: !!isDomainOpen(domainId),
openFeedAfterShare: shouldOpenFeedAfterShare()
}];