/* THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. */
if (!navigator.userAgent.includes("Chrome")) {
const newUA = navigator.userAgent + " Chrome for WebCompat";
const nav = Object.getPrototypeOf(navigator);
const ua = Object.getOwnPropertyDescriptor(nav, "userAgent");
ua.get = () => newUA;
Object.defineProperty(nav, "userAgent", ua);
window.__webcompat = (window.__webcompat ?? new Set()).add(
"navigator.userAgent"
);
}
if (navigator.vendor != "Google Inc.") {
const nav = Object.getPrototypeOf(navigator);
const vendor = Object.getOwnPropertyDescriptor(nav, "vendor");
vendor.get = () => "Google Inc.";
Object.defineProperty(nav, "vendor", vendor);
window.__webcompat = (window.__webcompat ?? new Set()).add(
"navigator.vendor"
);
}
{
const bugInfo = [["histography.io", ["1457335"]]];
const msgs = window.__webcompat;
delete window.__webcompat;
if (msgs?.size) {
const bugs =
bugInfo.find(([domain]) => location.href.includes(domain))?.[1] ??
bugInfo[0][1];
console.info(
`${[...msgs].join(", ")} ${msgs.size > 1 ? "are" : "is"} being altered for compatibility reasons. See ${bugNumbers} for details.`
);
}
}