mirror of
https://github.com/hensm/fx_cast.git
synced 2026-06-10 17:49:58 +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
|
* provide cast functionality if the browser is detected
|
||||||
* as Chrome, so we should rewrite the User-Agent header
|
* as Chrome, so we should rewrite the User-Agent header
|
||||||
* to reflect this on whitelisted sites.
|
* to reflect this on whitelisted sites.
|
||||||
*
|
|
||||||
* TODO: Inject script to change navigator.userAgent
|
|
||||||
* property.
|
|
||||||
*/
|
*/
|
||||||
async function onBeforeSendHeaders (details) {
|
async function onBeforeSendHeaders (details) {
|
||||||
const { options } = await browser.storage.sync.get("options");
|
const { options } = await browser.storage.sync.get("options");
|
||||||
|
|||||||
@@ -40,4 +40,4 @@
|
|||||||
"shim/bundle.js"
|
"shim/bundle.js"
|
||||||
, "dm.js"
|
, "dm.js"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user