Skip to content

Commit

Permalink
Update grantAccessAction
Browse files Browse the repository at this point in the history
  • Loading branch information
helamanl0424 authored Apr 4, 2024
1 parent 1d023a6 commit 21ca3df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions samples/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -466,12 +466,12 @@ async function grantAccessAction() {
if (access == 'Private') {
grantAccess(getCurrentPath());
document.getElementById('grantAccessToggle').textContent = 'Public';
console.log(`${url} is now public.`)
console.log(`${getCurrentPath()} is now public.`)
alert('The photo is now public!');
} else {
removeAccess(getCurrentPath());
document.getElementById('grantAccessToggle').textContent = 'Private';
console.log(`${url} is now private.`)
console.log(`${getCurrentPath()} is now private.`)
alert('The photo is now private!');
}
}
Expand Down

0 comments on commit 21ca3df

Please sign in to comment.