Skip to content

Commit

Permalink
Remove unecessary safari specific code
Browse files Browse the repository at this point in the history
  • Loading branch information
bischofmax committed Sep 27, 2024
1 parent 222b8ee commit 6462a36
Showing 1 changed file with 4 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,23 +73,17 @@ const element = toRef(props, "element");
useBoardFocusHandler(element.value.id, appointmentFinderElement);
const onEdit = () => {
const windowReference = window.open();
const adminId = props.element.content.adminId;
const url = `http://localhost:4200/#/admin/dashboard/${adminId}`;
if (adminId && windowReference) {
const url = `http://localhost:4200/#/admin/dashboard/${adminId}`;
windowReference.location = url;
}
window.open(url, "_blank");
};
const redirectToAppointmentFinderUrl = async () => {
const windowReference = window.open();
const appointmentFinderId = props.element.content.appointmentFinderId;
const url = `http://localhost:4200/#/poll/${appointmentFinderId}`;
if (appointmentFinderId && windowReference) {
const url = `http://localhost:4200/#/poll/${appointmentFinderId}`;
windowReference.location = url;
}
window.open(url, "_blank");
};
const ariaLabel = computed(() => {
Expand Down

0 comments on commit 6462a36

Please sign in to comment.