1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Merge pull request #4559 from thornbill/fix-getter-returns

Fix getter return value bugs
This commit is contained in:
Bill Thornton 2023-05-02 13:07:50 -04:00 committed by GitHub
commit f2ac4d7e03
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View file

@ -39,9 +39,9 @@ try {
const elem = document.createElement('div');
const opts = Object.defineProperty({}, 'behavior', {
// eslint-disable-next-line getter-return
get: function () {
supportsScrollToOptions = true;
return null;
}
});

View file

@ -12,9 +12,9 @@ if (HTMLElement.prototype.nativeFocus === undefined) {
}, true);
const opts = Object.defineProperty({}, 'preventScroll', {
// eslint-disable-next-line getter-return
get: function () {
supportsPreventScrollOption = true;
return null;
}
});

View file

@ -87,9 +87,9 @@ export function parentWithClass(elem, classNames) {
let supportsCaptureOption = false;
try {
const opts = Object.defineProperty({}, 'capture', {
// eslint-disable-next-line getter-return
get: function () {
supportsCaptureOption = true;
return null;
}
});
window.addEventListener('test', null, opts);