mirror of
https://github.com/lubosz/overte.git
synced 2025-04-16 14:16:36 +02:00
Quick comment updates
This commit is contained in:
parent
ef2e5f78ff
commit
d7348aabc8
2 changed files with 5 additions and 5 deletions
|
@ -131,7 +131,7 @@ function createShareOverlay(parentID, isGif, shareURL, hifiShareButtonsDisabled)
|
|||
return shareOverlayContainer;
|
||||
}
|
||||
function selectImageToShare(selectedID) {
|
||||
selectedID = selectedID.id; // Why is this necessary?
|
||||
selectedID = selectedID.id; // `selectedID` is passed as an HTML object to these functions; we just want the ID
|
||||
var shareOverlayContainer = document.getElementById(selectedID + "shareOverlayContainer");
|
||||
var shareBar = document.getElementById(selectedID + "shareBar");
|
||||
var shareOverlayBackground = document.getElementById(selectedID + "shareOverlayBackground");
|
||||
|
@ -153,7 +153,7 @@ function shareForUrl(selectedID) {
|
|||
}));
|
||||
}
|
||||
function shareWithEveryone(selectedID, isGif) {
|
||||
selectedID = selectedID.id; // Why is this necessary?
|
||||
selectedID = selectedID.id; // `selectedID` is passed as an HTML object to these functions; we just want the ID
|
||||
|
||||
document.getElementById(selectedID + "shareWithEveryoneButton").setAttribute("disabled", "disabled");
|
||||
document.getElementById(selectedID + "inviteConnectionsCheckbox").setAttribute("disabled", "disabled");
|
||||
|
@ -174,7 +174,7 @@ function shareButtonClicked(selectedID) {
|
|||
}));
|
||||
}
|
||||
function cancelSharing(selectedID) {
|
||||
selectedID = selectedID.id; // Why is this necessary?
|
||||
selectedID = selectedID.id; // `selectedID` is passed as an HTML object to these functions; we just want the ID
|
||||
var shareOverlayContainer = document.getElementById(selectedID + "shareOverlayContainer");
|
||||
var shareBar = document.getElementById(selectedID + "shareBar");
|
||||
var shareOverlayBackground = document.getElementById(selectedID + "shareOverlayBackground");
|
||||
|
|
|
@ -98,7 +98,7 @@ function onMessage(message) {
|
|||
var isLoggedIn;
|
||||
var needsLogin = false;
|
||||
switch (message.action) {
|
||||
case 'ready': // Send it.
|
||||
case 'ready': // DOM is ready and page has loaded
|
||||
tablet.emitScriptEvent(JSON.stringify({
|
||||
type: "snapshot",
|
||||
action: "captureSettings",
|
||||
|
@ -137,7 +137,7 @@ function onMessage(message) {
|
|||
print('Sharing snapshot with audience "for_url":', message.data);
|
||||
Window.shareSnapshot(message.data, message.href || href);
|
||||
} else {
|
||||
// TODO?
|
||||
// TODO
|
||||
}
|
||||
break;
|
||||
case 'shareSnapshotWithEveryone':
|
||||
|
|
Loading…
Reference in a new issue