Generated file

Copy as Markdown

Other Tools

/* THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. */
if (new WheelEvent("test").type !== "mousewheel") {
Object.defineProperty(window.WheelEvent.prototype, "type", {
configurable: true,
get: () => "mousewheel",
set: () => {},
});
const { prototype } = window.EventTarget;
const { addEventListener } = prototype;
prototype.addEventListener = function (type, fn, c, d) {
if (type === "mousewheel") {
type = "wheel";
}
return addEventListener.call(this, type, fn, c, d);
};
window.__webcompat ??= new Set();
window.__webcompat.add("WheelEvent");
window.__webcompat.add("addEventListener");
}
{
const bugInfo = [["app.powerbi.com", ["1911423", "1944518"]]];
const msgs = window.__webcompat;
delete window.__webcompat;
if (msgs?.size) {
const bugs =
bugInfo.find(([domain]) => location.href.includes(domain))?.[1] ??
bugInfo[0][1];
const bugNumbers = bugs.map(b => "https://bugzil.la/" + b).join(" and ");
console.info(
`${[...msgs].join(", ")} ${msgs.size > 1 ? "are" : "is"} being altered for compatibility reasons. See ${bugNumbers} for details.`
);
}
}