Fix setBackdropTransparency.

This commit is contained in:
Izzie Walton 2024-05-17 18:22:22 -04:00
parent 0c57c6d2ea
commit b042a15fae

View File

@ -15,10 +15,7 @@
this.appHost = appHost;
this.appSettings = appSettings;
// this can be removed after 10.9
this.setTransparency = (dashboard && dashboard.setBackdropTransparency)
? dashboard.setBackdropTransparency.bind(dashboard)
: appRouter.setTransparency.bind(appRouter);
this.setTransparency = dashboard.default.setBackdropTransparency.bind(dashboard);
/**
* @type {string}
@ -39,7 +36,7 @@
* @type {boolean}
*/
this.isFetching = false;
/**
* @type {HTMLDivElement | null | undefined}
*/
@ -539,7 +536,7 @@
player.finished.connect(this.onEnded);
player.updateDuration.connect(this.onDuration);
player.error.connect(this.onError);
player.paused.connect(this.onPause);
player.paused.connect(this.onPause);
}
if (options.fullscreen) {