mirror of
https://codeberg.org/vlw/foodora-notify.git
synced 2025-09-14 02:43:41 +02:00
fix: observer options
This commit is contained in:
parent
717372be3e
commit
0379c4f631
2 changed files with 8 additions and 2 deletions
5
README.md
Normal file
5
README.md
Normal file
|
@ -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)
|
|
@ -6,8 +6,9 @@ class FoodoraNotify {
|
||||||
|
|
||||||
// Send ETA update notification each time the ETA text updates on screen
|
// Send ETA update notification each time the ETA text updates on screen
|
||||||
this.observer.observe(this.eta, {
|
this.observer.observe(this.eta, {
|
||||||
attributes: true,
|
characterData: true,
|
||||||
childList: true,
|
attributes: false,
|
||||||
|
childList: false,
|
||||||
subtree: true
|
subtree: true
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue