mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 22:39:18 +02:00
Merge branch 'master' of github.com:highfidelity/hifi into bullet-constraints-1
This commit is contained in:
commit
db98020974
2 changed files with 7 additions and 4 deletions
|
@ -84,12 +84,14 @@ window.onload = function () {
|
||||||
if (messageOptions.containsGif) {
|
if (messageOptions.containsGif) {
|
||||||
if (messageOptions.processingGif) {
|
if (messageOptions.processingGif) {
|
||||||
imageCount = message.action.length + 1; // "+1" for the GIF that'll finish processing soon
|
imageCount = message.action.length + 1; // "+1" for the GIF that'll finish processing soon
|
||||||
message.action.unshift({ localPath: '../../../resources/icons/loadingDark.gif' });
|
message.action.unshift({ localPath: messageOptions.loadingGifPath });
|
||||||
message.action.forEach(addImage);
|
message.action.forEach(addImage);
|
||||||
document.getElementById('p0').disabled = true;
|
document.getElementById('p0').disabled = true;
|
||||||
} else {
|
} else {
|
||||||
|
var gifPath = message.action[0].localPath;
|
||||||
document.getElementById('p0').disabled = false;
|
document.getElementById('p0').disabled = false;
|
||||||
document.getElementById('p0img').src = message.action[0].localPath;
|
document.getElementById('p0img').src = gifPath;
|
||||||
|
paths[0].localPath = gifPath;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
imageCount = message.action.length;
|
imageCount = message.action.length;
|
||||||
|
|
|
@ -90,12 +90,12 @@ function onMessage(message) {
|
||||||
needsLogin = true;
|
needsLogin = true;
|
||||||
submessage.share = false;
|
submessage.share = false;
|
||||||
shareAfterLogin = true;
|
shareAfterLogin = true;
|
||||||
snapshotToShareAfterLogin = {path: submessage.localPath, href: submessage.href};
|
snapshotToShareAfterLogin = {path: submessage.localPath, href: submessage.href || href};
|
||||||
}
|
}
|
||||||
if (submessage.share) {
|
if (submessage.share) {
|
||||||
print('sharing', submessage.localPath);
|
print('sharing', submessage.localPath);
|
||||||
outstanding = true;
|
outstanding = true;
|
||||||
Window.shareSnapshot(submessage.localPath, submessage.href);
|
Window.shareSnapshot(submessage.localPath, submessage.href || href);
|
||||||
} else {
|
} else {
|
||||||
print('not sharing', submessage.localPath);
|
print('not sharing', submessage.localPath);
|
||||||
}
|
}
|
||||||
|
@ -239,6 +239,7 @@ function processingGifStarted(pathStillSnapshot) {
|
||||||
{
|
{
|
||||||
containsGif: true,
|
containsGif: true,
|
||||||
processingGif: true,
|
processingGif: true,
|
||||||
|
loadingGifPath: Script.resolvePath(Script.resourcesPath() + 'icons/loadingDark.gif'),
|
||||||
canShare: !!isDomainOpen(domainId),
|
canShare: !!isDomainOpen(domainId),
|
||||||
openFeedAfterShare: shouldOpenFeedAfterShare()
|
openFeedAfterShare: shouldOpenFeedAfterShare()
|
||||||
}];
|
}];
|
||||||
|
|
Loading…
Reference in a new issue