Answer the question
In order to leave comments, you need to log in
How to track the creation of a property/object in window?
Hello toaster!
I am writing an extension for Google Chrome.
There is a page on which 2 scripts work: site and my content_script .
So, by the time my script loads, window doesn't have the window.blabla property;
How it is possible to trace creation thereof in window besides setInterval?
Answer the question
In order to leave comments, you need to log in
Isn't it? https://developer.mozilla.org/en-US/docs/Web/JavaS...
"The watch() method watches for a property to be assigned a value and runs a function when that occurs."
I think the usage should look like this: window.watch("blabla", function(id, oldval, newval){...});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question