From 0379c4f631f4ac63dba2bdba2c90fc9311cef1b3 Mon Sep 17 00:00:00 2001 From: Victor Westerlund Date: Sun, 5 Feb 2023 15:37:19 +0100 Subject: [PATCH] fix: observer options --- README.md | 5 +++++ chrome/assets/js/content.js | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..f483e8c --- /dev/null +++ b/README.md @@ -0,0 +1,5 @@ +# Foodora Notify + +Get notified when the estimated delivery time changes for your Foodora order. + +[**Install from the Chrome Web Store**](https://chrome.google.com/webstore/detail/ipnapnfmpconclhodnibpkajapijkohf) \ No newline at end of file diff --git a/chrome/assets/js/content.js b/chrome/assets/js/content.js index 1d8b40a..4448383 100644 --- a/chrome/assets/js/content.js +++ b/chrome/assets/js/content.js @@ -6,8 +6,9 @@ class FoodoraNotify { // Send ETA update notification each time the ETA text updates on screen this.observer.observe(this.eta, { - attributes: true, - childList: true, + characterData: true, + attributes: false, + childList: false, subtree: true }); }