From 183bc0e17ab19009c112a237885ea5aff5157326 Mon Sep 17 00:00:00 2001 From: Kevin Monisit Date: Sun, 9 Jun 2024 11:45:55 -0400 Subject: [PATCH] Modified delete button svg --- src/taskpane/taskpane.ts | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/taskpane/taskpane.ts b/src/taskpane/taskpane.ts index 36f322a..3436720 100644 --- a/src/taskpane/taskpane.ts +++ b/src/taskpane/taskpane.ts @@ -223,8 +223,19 @@ function createTrackingPixelDiv(url: string) { let removeButton = document.createElement("button"); // add the close_svg to the button let img = document.createElement("img"); - // the svg is located in ../../assets/delete_svg.svg - img.src = "../../assets/delete_svg.svg"; + /* + IMPORTANT: + + Due to time constraints, we are using an actual live link to download the delete_svg file. + In normal circumstances, we would use a relative path towards the file. However, + there are some issues when the distribution is created upon release. + + If there are issues with the delete icon, please investigate how the path towards assets + change and create the necessary modifications to this line. + + Please change this in the future. + */ + img.src = "https://shrunk.rutgers.edu/outlook/assets/dev/assets/delete_svg.svg"; // the svg is located in ../../assets/delete_svg.svg removeButton.appendChild(img); removeButton.onclick = (event: MouseEvent) => {