diff --git a/samples/index.js b/samples/index.js index 2bf71aa..c62d64a 100644 --- a/samples/index.js +++ b/samples/index.js @@ -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!'); } }