mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-08-02 03:16:42 +02:00
Fix Settings button keep being added/removed from header
This commit is contained in:
@@ -146,5 +146,10 @@ export function escapeHtml(html: string): string {
|
||||
return $span.innerHTML;
|
||||
}
|
||||
|
||||
export function isElementVisible($elm: HTMLElement): boolean {
|
||||
const rect = $elm.getBoundingClientRect();
|
||||
return !!rect.width && !!rect.height;
|
||||
}
|
||||
|
||||
export const CTN = document.createTextNode.bind(document);
|
||||
window.BX_CE = createElement;
|
||||
|
Reference in New Issue
Block a user