Skip to content

Commit

Permalink
Modified delete button svg
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinmonisit authored Jun 9, 2024
1 parent 2c60df7 commit 183bc0e
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions src/taskpane/taskpane.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 183bc0e

Please sign in to comment.