mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix getter return value bugs
This commit is contained in:
parent
c0012de927
commit
5cfdb1647f
3 changed files with 3 additions and 3 deletions
|
@ -39,9 +39,9 @@ try {
|
||||||
const elem = document.createElement('div');
|
const elem = document.createElement('div');
|
||||||
|
|
||||||
const opts = Object.defineProperty({}, 'behavior', {
|
const opts = Object.defineProperty({}, 'behavior', {
|
||||||
// eslint-disable-next-line getter-return
|
|
||||||
get: function () {
|
get: function () {
|
||||||
supportsScrollToOptions = true;
|
supportsScrollToOptions = true;
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -12,9 +12,9 @@ if (HTMLElement.prototype.nativeFocus === undefined) {
|
||||||
}, true);
|
}, true);
|
||||||
|
|
||||||
const opts = Object.defineProperty({}, 'preventScroll', {
|
const opts = Object.defineProperty({}, 'preventScroll', {
|
||||||
// eslint-disable-next-line getter-return
|
|
||||||
get: function () {
|
get: function () {
|
||||||
supportsPreventScrollOption = true;
|
supportsPreventScrollOption = true;
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -87,9 +87,9 @@ export function parentWithClass(elem, classNames) {
|
||||||
let supportsCaptureOption = false;
|
let supportsCaptureOption = false;
|
||||||
try {
|
try {
|
||||||
const opts = Object.defineProperty({}, 'capture', {
|
const opts = Object.defineProperty({}, 'capture', {
|
||||||
// eslint-disable-next-line getter-return
|
|
||||||
get: function () {
|
get: function () {
|
||||||
supportsCaptureOption = true;
|
supportsCaptureOption = true;
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
window.addEventListener('test', null, opts);
|
window.addEventListener('test', null, opts);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue