mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-03 06:07:19 +02:00
Disable header & footer
This commit is contained in:
parent
5ce7ade574
commit
5949e1e411
5
dist/better-xcloud.pretty.user.js
vendored
5
dist/better-xcloud.pretty.user.js
vendored
@ -8245,6 +8245,11 @@ var BxExposed = {
|
||||
} catch (e) {
|
||||
BxLogger.error(LOG_TAG3, e);
|
||||
}
|
||||
try {
|
||||
state.uhf.headerMode = "Off", state.uhf.footerMode = "Off";
|
||||
} catch (e) {
|
||||
BxLogger.error(LOG_TAG3, e);
|
||||
}
|
||||
try {
|
||||
let xCloud = state.xcloud.authentication.authStatusByStrategy.XCloud;
|
||||
if (xCloud.type === 3 && xCloud.error.type === "UnsupportedMarketError") window.stop(), window.location.href = "https://www.xbox.com/en-US/play";
|
||||
|
2
dist/better-xcloud.user.js
vendored
2
dist/better-xcloud.user.js
vendored
File diff suppressed because one or more lines are too long
@ -81,6 +81,14 @@ export const BxExposed = {
|
||||
BxLogger.error(LOG_TAG, e);
|
||||
}
|
||||
|
||||
// Disable header & footer
|
||||
try {
|
||||
state.uhf.headerMode = 'Off';
|
||||
state.uhf.footerMode = 'Off';
|
||||
} catch (e) {
|
||||
BxLogger.error(LOG_TAG, e);
|
||||
}
|
||||
|
||||
// Redirect to /en-US/play if visiting from an unsupported region
|
||||
try {
|
||||
const xCloud = state.xcloud.authentication.authStatusByStrategy.XCloud;
|
||||
|
Loading…
x
Reference in New Issue
Block a user