shaka-project / eme_logger

Logs Encrypted Media Extension (EME) events and calls to help investigate issues in premium media sites.
https://chrome.google.com/webstore/detail/eme-call-and-event-logger/cniohcjecdcdhgmlofniddfoeokbpbpb
Apache License 2.0
104 stars 24 forks source link

fix: Remove all variables and most functions from global scope #50

Closed jrummell-chromium closed 1 year ago

jrummell-chromium commented 2 years ago

To avoid name collisions on sites due to common names, e.g. Uncaught SyntaxError: Identifier 'options' has already been declared

This also updates to use version 1.0.2 of trace-anything.

Changes have been formatted with Chromium's JavaScript formatter.

Fixes https://github.com/shaka-project/eme_logger/issues/44

jrummell-chromium commented 1 year ago

Abandoning this as I have redone this on latest.