Skip to content

Commit

Permalink
moved to using window instead of env
Browse files Browse the repository at this point in the history
  • Loading branch information
nheek committed Oct 2, 2024
1 parent 4653df8 commit 730ee21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/components/MyFiles/MyFiles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const MyFiles = () => {
const [modalMessage, setModalMessage] = useState("");
const [isDeleteConfirmationVisible, setIsDeleteConfirmationVisible] = useState(false);
const [fileToDelete, setFileToDelete] = useState<File | null>(null);
const websiteUrl = process.env.DOMAIN;
const websiteUrl = `${window.location.protocol}//${window.location.host}/`;

const showModal = (title: string, message: string) => {
setModalTitle(title);
Expand Down

0 comments on commit 730ee21

Please sign in to comment.