From 21ca3dfd6588259c2ed5c09b704d6c9730ed7b44 Mon Sep 17 00:00:00 2001 From: helamanl0424 Date: Wed, 3 Apr 2024 19:01:25 -0600 Subject: [PATCH] Update grantAccessAction --- samples/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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!'); } }