aboutsummaryrefslogtreecommitdiff
path: root/src/ClientUtils.ts
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2024-08-29 13:07:53 -0400
committerbobzel <zzzman@gmail.com>2024-08-29 13:07:53 -0400
commit0ac79ba6a7ab19b4aafbc11dac9bab4781d4bd40 (patch)
tree4d5774dc4247782ccb6c99b018ca8e0c91187378 /src/ClientUtils.ts
parentf7cdcb654e83d7fdbfd0b1cfc80c485bb9554f08 (diff)
merge cleanup cleanup
Diffstat (limited to 'src/ClientUtils.ts')
-rw-r--r--src/ClientUtils.ts9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/ClientUtils.ts b/src/ClientUtils.ts
index dc52218c5..55801df81 100644
--- a/src/ClientUtils.ts
+++ b/src/ClientUtils.ts
@@ -82,10 +82,6 @@ export function returnEmptyFilter() {
return [] as string[];
}
-export function returnEmptyDoclist() {
- return [] as any[];
-}
-
export namespace ClientUtils {
export const CLICK_TIME = 300;
export const DRAG_THRESHOLD = 4;
@@ -449,11 +445,10 @@ export function smoothScrollHorizontal(duration: number, element: HTMLElement |
animateScroll();
}
-export function addStyleSheet(styleType: string = 'text/css') {
+export function addStyleSheet() {
const style = document.createElement('style');
- style.type = styleType;
const sheets = document.head.appendChild(style);
- return (sheets as any).sheet;
+ return sheets.sheet;
}
export function addStyleSheetRule(sheet: CSSStyleSheet | null, selector: string, css: string | { [key: string]: string }, selectorPrefix = '.') {
const propText =