BUG: Ghostery doesn't init cliqz properly leading to console statement on every page load #135
Comments
|
Other users are encountering this issue: https://stackoverflow.com/questions/47988759/loading-pref-showconsolelogs-before-prefs-were-initialised-you-will-not-get-the |
|
@chrmod Any ideas on this? |
|
@jhaenchen Thanks for your help. I think, you are right. The main idea to fix it is to always wait for the initialization of the prefs.init(), and if necessary start with a default value until the promise resolves. Do you still get the error message with the current Ghostery release? If you can show me how to reproduce, I will have a look. I tested on Linux not on Mac, but this should not be OS dependent. There were also some changes recently on the browser-core side. Maybe it is already fixed there, but I do not think the latest Ghostery release has those changes yet. |
|
@philipp-classen I can no longer reproduce the issue! Thanks everyone! I'll close if there are no objections. |
Description
I noticed the following warning in my console:
loading pref showConsoleLogs before prefs were initialised, you will not get the correct resultThis was emitted from the Ghostery extension content-bundle.js file. Upon closer examination that statement is emitted from here and is emitted because init() is not called before reading the prefs. I suspect then that it could be fixed by calling init on the created App instance here
Expected Behavior
Not to see a console statement on every page load.
Actual Behavior
I see a console statement.
Steps to Reproduce
Versions
The text was updated successfully, but these errors were encountered: