Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Safari compatibility by applying window context to getter function
The issue was identified using the rule: #%#//scriptlet('set-constant', 'navigator.privateAttribution', 'undefined'). Safari was throwing the error: "TypeError: The Window.navigator getter can only be used on instances of Window," which caused subsequent attempts to access the property to fail. This commit resolves the issue by invoking the previous getter with this explicitly set to window.
- Loading branch information