mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-08 08:39:59 +00:00
navigator.userAgent property is now derived from the header
This commit is contained in:
@@ -158,9 +158,6 @@ let currentUAString;
|
||||
* provide cast functionality if the browser is detected
|
||||
* as Chrome, so we should rewrite the User-Agent header
|
||||
* to reflect this on whitelisted sites.
|
||||
*
|
||||
* TODO: Inject script to change navigator.userAgent
|
||||
* property.
|
||||
*/
|
||||
async function onBeforeSendHeaders (details) {
|
||||
const { options } = await browser.storage.sync.get("options");
|
||||
|
||||
@@ -40,4 +40,4 @@
|
||||
"shim/bundle.js"
|
||||
, "dm.js"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user