mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
reduce direct dom access
This commit is contained in:
parent
f53cb1ca8a
commit
b7eaf270a1
13 changed files with 165 additions and 37 deletions
|
@ -1,4 +1,4 @@
|
|||
define(['jQuery', 'cardBuilder'], function ($, cardBuilder) {
|
||||
define(['jQuery', 'cardBuilder', 'dom'], function ($, cardBuilder, dom) {
|
||||
|
||||
// The base query options
|
||||
var query = {
|
||||
|
@ -29,7 +29,7 @@
|
|||
|
||||
updateFilterControls();
|
||||
|
||||
var screenWidth = window.innerWidth;
|
||||
var screenWidth = dom.getWindowSize().innerWidth;
|
||||
|
||||
html += cardBuilder.getCardsHtml({
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue