Rename fullScreen -> fullscreen

This commit is contained in:
Dermot Duffy
2022-03-19 09:00:21 -07:00
parent b35b9d0e36
commit f2c9888ce9
+3 -3
View File
@@ -1051,7 +1051,7 @@ export class FrigateCard extends LitElement {
/** /**
* Handler called when fullscreen is toggled. * Handler called when fullscreen is toggled.
*/ */
protected _fullScreenHandler(): void { protected _fullscreenHandler(): void {
this._generateConditionState(); this._generateConditionState();
// Re-render after a change to fullscreen mode to take advantage of // Re-render after a change to fullscreen mode to take advantage of
// the expanded screen real-estate (vs staying in aspect-ratio locked // the expanded screen real-estate (vs staying in aspect-ratio locked
@@ -1065,7 +1065,7 @@ export class FrigateCard extends LitElement {
connectedCallback(): void { connectedCallback(): void {
super.connectedCallback(); super.connectedCallback();
if (screenfull.isEnabled) { if (screenfull.isEnabled) {
screenfull.on('change', this._fullScreenHandler.bind(this)); screenfull.on('change', this._fullscreenHandler.bind(this));
} }
} }
@@ -1074,7 +1074,7 @@ export class FrigateCard extends LitElement {
*/ */
disconnectedCallback(): void { disconnectedCallback(): void {
if (screenfull.isEnabled) { if (screenfull.isEnabled) {
screenfull.off('change', this._fullScreenHandler.bind(this)); screenfull.off('change', this._fullscreenHandler.bind(this));
} }
super.disconnectedCallback(); super.disconnectedCallback();
} }